Put "__value" before your enum statement.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Thanks
Shawn Rothlisberger
CLR Performance Test
Hi,
Thanks for replying for my question.
Actually the __value word doesn't solve my problem
since still I need to retype all enumeration types
definitions in another file. This way I will have to have
still two files with actualy the same types definitions
to maintain. This I would like to avoid. More precisely
formulated question is how to wrap already defined
unmanaged enumeration types definitions with some wrapper
in managed code so that redefinition is not required.
greetings
Marek
>-----Original Message-----
>Put "__value" before your enum statement.
[quoted text clipped - 7 lines]
>
>.
Mattias Sj?gren - 02 Oct 2003 00:18 GMT
Marek,
> Thanks for replying for my question.
>Actually the __value word doesn't solve my problem
>since still I need to retype all enumeration types
>definitions in another file. This way I will have to have
>still two files with actualy the same types definitions
>to maintain. This I would like to avoid.
Can't you solve that with a hack similar to this
#define enum __value enum
#include <YourExistingEnums.h>
#undef enum
Mattias

Signature
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.
marek - 06 Oct 2003 10:01 GMT
Indeed ... shame on me ...
that I dodn't have this idea myself.
thanks
Marek
>-----Original Message-----
>Marek,
[quoted text clipped - 13 lines]
>
>Mattias