Structure :C++ <--> VB?
Hi,

My Vb app needs to call Standard DLL(using C++). I get confused with structure data type conversion. Here are two questions:

Q(1): Structure in C++:

struct User
{
WORD Id;
BYTE Spare[2];
WCHAR Name[64];
}

How to convert to VB type?why need Spare here?

(2) structure in Vb:

Type Product
Id as byte
Name as String
End type

How to define this structure in C++?

Wainting for your instructions. thanks.