how to realize "#define" macro definition in C#

Joined
Jun 29, 2005
Messages
11
Reaction score
0
I have such a block in C++
#pragma pack(push,4)
#define STATE_NULL 0x0000
#pragma pack(pop)

and I need to convert it to C#.

I want to use the "MarshalAs" attribute, but i dont
know which UnmanagedType that hex value belongs to.

Is there another way to realize this convertion ?

thank you very much
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top