Junior Spellweaver
- Joined
- Nov 19, 2014
- Messages
- 132
- Reaction score
- 12
if i didn't make this simple wrong, you are would not to share your informations.
bergi, BOOL in C++ is an int, not a bool type.
So you're looking at 4 bytes versus one byte.
As well as char being 2 bytes due to unicode. I recommend using byte instead.
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 40)]
[MarshalAs(UnmanagedType.Bool)]