RegisterClass gives me an error:
Incompatible types: 'tagWNDCLASSA' and 'Class reference'
What do I need to do?
Thanks,
SDiebel
TaClass = Class(TPersistent)
end;
initialization
RegisterClass(TaClass);
Xavier Pacheco (TeamB)
Xapware Technologies Inc.
www.xapware.com
www.xapxone.com - Tips, search engine and articles
------------------------------------------------
Sorry but TeamB cannot answer support
questions received via email.
Hm? RegisterClass can't give you this error. It's compiler that gives you
this error.
>
>TaClass = Class(TPersistent)
>end;
>
>initialization
>RegisterClass(TaClass);
>
Seems like you added "windows" into uses clause in implemetation section.
The solution is to either move "windows" into uses clause of interface
section or rename your class.
--
Robert
Try this:
Classes.ReqisterClass(TaClass);
--
Alex Yackimoff
Stephen
Try
Classes.RegisterClass(TaClass)
You've got Windows after Classes in your Uses clause. There are
duplicated declarations.
Roger Morton
roger....@bigfoot.com
Stephen Diebel wrote:
--
Ron Davis
Custom Software Engineering
Just make sure that 'windows' is the *first* thing in your uses list.
If you say:
uses Classes, SysUtils, Windows
you will get the problem you're seeing.
But if you say:
uses Windows, Classes, SysUtils
The problem will go away.
Colin
e-mail :co...@wilsonc.demon.co.uk
web: http://www.wilsonc.demon.co.uk/delphi.htm