At 04:01 AM 9/11/2002 -0700, you wrote:
>I am a new developer in PalmOS.
>I want to inherit ControlType struct in my class.
>
>When I declare statement in CodeWarrior IDE like this
>:
>
>class example : public ControlType{
>         int ex;
>};
>
>I have "illegal use of incomplete struct/union/class"
>error messsage in compile time.

You cannot inherit from this type.  This is a "reference only" type in Palm 
OS -- the Palm OS headers don't provide a definition of it (unless you've 
enabled the macros that allow internal access), so you can only have 
pointer to ControlTypes, not actual ControlTypes.  In order to inherit from 
a class or struct, the compiler has to know the internal structure of the 
class, but Palm OS specifically doesn't want you to know this structure, as 
it will be changing in future versions.

If you're trying to write an API wrapper, why not look at the already 
existing Object Library for Palm OS (www.aqpoint.com/pol)?  This is a full, 
MFC-like wrapper around large parts of Palm OS, and it works quite well 
with CodeWarrior for Palm OS.

-- 
Ben Combee
CodeWarrior for Palm OS Platform technical lead
[EMAIL PROTECTED]


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to