Home > Software engineering >  Structure contains the string to use WM_COPYDATA to communicate across processes receiving less than
Structure contains the string to use WM_COPYDATA to communicate across processes receiving less than

Time:10-11

Structure contains the string to use WM_COPYDATA to communicate across processes receiving less than content

CodePudding user response:

On Shared memory, or
Char array

CodePudding user response:

How the structure contain the string contains?
Struct A
{
Char str1 [100].
Char str2 [100].
}
This shouldn't be a problem,

Struct A
{
Char * str1;
Char * str2;
}
It is no good, because the WM_COPYDATA just send in the past, the address of the two Pointers without the pointer to data to send in the past, can consider to use flexible array to solve this problem, or change to the above the first approach,
  • Related