Re: enum size in WinCE compiler



I believe you can do something like:

enum MyEnum : unsigned char {
// ...
};


I think that this is an MS specific extension though, so it probably won't
be portable.

-James

"Dinesh" <mittals.dinesh@xxxxxxxxx> wrote in message
news:u$D4ro7TIHA.6036@xxxxxxxxxxxxxxxxxxxxxxx
Hi All,
Is there anyway to alter the size of enum data types with WinCE compiler?
I understand in WinCE OS, a enum data types alwayss assumes 4 bytes.
Several compilers like GCC, ARM Compilers definitely provide the option,
why not wince?

cheers,
Mithi


.



Relevant Pages

  • Re: enum size in WinCE compiler
    ... unsigned char packetData; ... Is there anyway to alter the size of enum data types with WinCE ... Several compilers like GCC, ...
    (microsoft.public.windowsce.embedded)
  • enum size in WinCE compiler
    ... Is there anyway to alter the size of enum data types with WinCE compiler? ... a enum data types alwayss assumes 4 bytes. ... Several compilers like GCC, ARM Compilers definitely provide the option, why not wince? ...
    (microsoft.public.windowsce.embedded)
  • Re: enum size in WinCE compiler
    ... I couldn't see it in WinCE documentation and when I tried using this syntax, ... I think that this is an MS specific extension though, so it probably won't be portable. ... Is there anyway to alter the size of enum data types with WinCE compiler? ... Several compilers like GCC, ARM Compilers definitely provide the option, why not wince? ...
    (microsoft.public.windowsce.embedded)

Loading