KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I would like to create a std::vector in shared memory using the CreateFileMapping() windows API function. I know how to create shared memory and manage it, but how do I assign std::vector to a fixed address in memory? I cannot use boost or other libraries in my case, I am using CBuilder++ 2010. One variant I think is maybe to use std::vector<int> myVec; myVec *mv; mv = shared_memory_addr ? But how do I detect the real size of vectors to resize memory?
Tags (comma-separated)
Save Edits
Cancel