structures ?

new topic     » topic index » view thread      » older message » newer message

This discription of the PAINTSTRUCT in WIN32LIB.EW

-- Type PAINTSTRUCT
-- NEW! 0.15 Robert Craig found psRgbReserved to be too small
  psHdc               = allot( Long ),
  psErase             = allot( Long ),
  psPaintRect         = allot( SIZEOF_RECT ),
  psRestore           = allot( Long ),
  psIncUpdate         = allot( Long ),
  psRgbReserved       = allot( 32 ),
  SIZEOF_PAINTSTRUCT  = allotted_size(),

In the discription of the PAINTSTRUCT in "C" these:

    BOOL psErase;

    BOOL psRestore;
    BOOL psIncUpdate;

three variables in the structure are of the type BOOL
Isn't a BOOL suppose to be a (word) 16 bits. Why is there a
difference ? This is only one example of where I see this difference it
occurs in other places.

I still do not understand why the definition of a structure in Euphoria
is different in size than sizes of a structure I would define in "C"

Bernie

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu