G
Guest
Hi
how can I declared initial size of array in structure. I have below code in
c++ and translate this to vb.net. but get this error: "Arrays declared as
structure members cannot be declared with an initial size"
c++:
typedef struct{
prWChar DeviceInternalName[512];
prWChar ModelName[32];
prUInt16 Generation;
}prDeviceInfoTable;
vb.net:
Structure prDeviceInfoTable
Dim DeviceInternalName(0 to 511) As Char
Dim ModelName(0 to 31) As Char
Dim Generation As Integer
End Structure
how can I?
Very thanks
how can I declared initial size of array in structure. I have below code in
c++ and translate this to vb.net. but get this error: "Arrays declared as
structure members cannot be declared with an initial size"
c++:
typedef struct{
prWChar DeviceInternalName[512];
prWChar ModelName[32];
prUInt16 Generation;
}prDeviceInfoTable;
vb.net:
Structure prDeviceInfoTable
Dim DeviceInternalName(0 to 511) As Char
Dim ModelName(0 to 31) As Char
Dim Generation As Integer
End Structure
how can I?
Very thanks