i would to create std::vector in shared memory using CreateFileMapping() windows API function. I know how to create shared memory and manage it, but how to place std::vector to fixed address in memory? I can't use boost or other libraries in my case, i am using CBuilder++ 2010. One variant i think is maybe use
std::vector<int> myVec;
myVec *mv;
mv = shared_memory_addr ?
But how do i detect real size of vectors to resize memory?
See Question&Answers more detail:os