[DUG] Problem registering component in D5

Grant Brown grant at sitedoc.com.au
Fri Nov 25 17:41:22 NZDT 2005


Hi all,

Using D5;

I have a class that I need to add to the components in the  IDE but when 
I try to compile the package I get an error message "Incompatible type 
"TComponent Class and Class reference"

So what am I doing wrong ? (please be nice)

type
TMyDataStoreObject = class(TObject)
bla, bla bla ....

end;

procedure Register;

implementation

var
 CritSection: TCriticalSection;

procedure Register;
begin
********** Error at this line ***********
 RegisterComponents('SiteDoc Components', [TMyDataStoreObject]);
end;

TIA

-- 
Regards,
Grant Brown

Product Development Manager
Phone : 02 4229 1185
Mobile : 0412 926 995
Email : grant at sitedoc.com.au
Web : www.sitedoc.com.au

SiteDoc - Easy to Use - Powerful Results



More information about the Delphi mailing list