I used the following code to test: ---------------------------------- FontType myFont;
myFont.maxWidth = 0; ---------------------------------- the code can't be compiled, the CW show some error message:
Error : illegal use of incomplete struct/union/class 'FontTag' Test.cpp line 95 FontType myFont;
Error : illegal use of incomplete struct/union/class 'FontTag' Test.cpp line 97 myFont.maxWidth = 0;
I know we can directly access FontType in OS4 or below, but In OS5, Palm Inc suggest we shouldn't do so.
My application must directly access FontType, but the CW can't compile my code, are there other ways to directly access FontType?
Try reading the header where FontTag would be defined. Either turn on the macro that allows access to this, or make your own local copy of the structure with a new name.
-- Ben Combee Techwood Broadcasting Foundation, Austin Bureau Chief
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
