S
Sergey Muschin
Hi there,
i need to send a socket message to TCP socket server. Server has been
implemented
with VC 6.0 and expects from client the message in this format
typedef struct {
int msg_nbr; // Message number from list below
// Profile data
int iPar1;
int iPar2;
char chPar1[32];
char chPar2[32];
}EngAPI_def;
Now, in .NET Framework Class Library method Send of the class Socket wants
unsigned char buffer __gc[]
as a parametr.
How do i convert/emulate this native structure in my managed C++ code ?
I am out of any ideas ((
Regards,
Sergey Muschin
i need to send a socket message to TCP socket server. Server has been
implemented
with VC 6.0 and expects from client the message in this format
typedef struct {
int msg_nbr; // Message number from list below
// Profile data
int iPar1;
int iPar2;
char chPar1[32];
char chPar2[32];
}EngAPI_def;
Now, in .NET Framework Class Library method Send of the class Socket wants
unsigned char buffer __gc[]
as a parametr.
How do i convert/emulate this native structure in my managed C++ code ?
I am out of any ideas ((
Regards,
Sergey Muschin