CodePudding user response:
On Shared memory, orChar 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,