Home > Software engineering >  Questions about MFC CAsyncSocket Send function
Questions about MFC CAsyncSocket Send function

Time:10-31

As a halfway decent white, want to consult each great god
It is roughly such

MFC CAsyncSocket categories in the Send () function can be sent through forced into a BYTE * structure pointer to data exchange, such as
Typedef struct _a
{
BYTE name [20].
BYTE password [20].
} A, * PA;

But if the variable length of the string is defined as the following

Typedef struct _a
{
BYTE * name;
BYTE * password;
} A, * PA;

In Recive () to the data after only one variable address rather than a specific variable
How do I solve?

CodePudding user response:

Need to bring a variable length so accept the know how to accept data

CodePudding user response:

You have a problem sending code? Is it & amp; The structure of address?
  • Related