A: 

It seems that your declaration is mixed up. Check UnmanagedType, maybe this helps you find the proper types. I would assume that bAddressFlag should be Byte in VB (instead of char) and should be declared with UnmanagedType.U1 for example.

This is just a guess though.

testalino

related questions