S
shengmin.ruan
the wrong code is:
[StructLayout(LayoutKind::Sequential)]
public ref struct OutPacket{
int index;
List<MainInfo^>^ mainInfos;
};
[StructLayout(LayoutKind::Sequential)]
public ref struct MainInfo{
String^ value1;
String^ value2;
};
----------
the error message is:
Error 1 error C2065: 'MainInfo' : undeclared identifier
please help me ,thank u
[StructLayout(LayoutKind::Sequential)]
public ref struct OutPacket{
int index;
List<MainInfo^>^ mainInfos;
};
[StructLayout(LayoutKind::Sequential)]
public ref struct MainInfo{
String^ value1;
String^ value2;
};
----------
the error message is:
Error 1 error C2065: 'MainInfo' : undeclared identifier
please help me ,thank u