Accessing Bits of Shared Memory
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
I have a section of shared memory divided into 4 areas, but I would like to use memcpy() to update each section without affecting the other section. I have a pointer memPtr; int *memPtr; Can I just use:-
memscpy(memPtr, sizeof(section[0]), section[0]);
and then
memcpy(memPtr + sizeof(section[0]), section[1]);
i.e. the total ares is MyStruct section[4]; and would like to update section[0] and section [1] as required Thanks, Andy.