Shared MFC Map Accross Processes
-
I would like to share an MFC map object accross 3 processes. I am using CMapStringToString class. Any process can initialize the map at startup and I want the other processes to use a shared copy of this map. How can I do this ? I have no idea so any suggestion is welcome. Thanks in advance Orcun Colak
-
I would like to share an MFC map object accross 3 processes. I am using CMapStringToString class. Any process can initialize the map at startup and I want the other processes to use a shared copy of this map. How can I do this ? I have no idea so any suggestion is welcome. Thanks in advance Orcun Colak
i don't think is possible, especially not with MFC. you might be able to do something with shared memory, but it won't be a CMap. -c
There's one easy way to prove the effectiveness of 'letting the market decide' when it comes to environmental protection. It's spelt 'S-U-V'. --Holgate, from Plastic
-
I would like to share an MFC map object accross 3 processes. I am using CMapStringToString class. Any process can initialize the map at startup and I want the other processes to use a shared copy of this map. How can I do this ? I have no idea so any suggestion is welcome. Thanks in advance Orcun Colak
It would be quite difficult to do. Probably can't do it at all with a straight up CMap. I think the only way you could share something that dynamic across multiple processes would be to set up a memory-mapped file, and map the new and delete operators for your class to use memory from that file or something. I had a similar problem a while ago, and ended up abandoning my design because of it. Even a broken clock is right twice a day.