views:

23

answers:

0

Hi, I use CreateFileMapping, but this method was not useful,because only static structure can be shared by this method.

for example this method is good for following structure:

struct MySharedData
{
   unsigned char Flag;
   int Buff[10];
};

but it's not good for :

struct MySharedData
{
   unsigned char Flag;
   int *Buff;
};

would be thankful if somebody guide me on this, Thanks in advance!