G
Guest
Hi
I used shared memory quite a lot for IPC. The problem is that it is fixed
size so that you cannot place something like a CString in it because CString
will load it's buffer from the local heap which will mean nothing to another
program accessing the pointer.
I was wondering if any of the new CStringT type items or STL "string"
objects can be declared so that the storage is fixed at declaration time. I
hate using char[], but I have no choice it seems.
It would be really fun to set up a shared heap using a memory manager with
mutexes, etc. I looked at ACE, but there seems to be a lot baggage.
I'm converting VC 6.0 MFC apps to VC 7.0 and beyond, maintaining MFC for the
most part.
Thanks
Bill
I used shared memory quite a lot for IPC. The problem is that it is fixed
size so that you cannot place something like a CString in it because CString
will load it's buffer from the local heap which will mean nothing to another
program accessing the pointer.
I was wondering if any of the new CStringT type items or STL "string"
objects can be declared so that the storage is fixed at declaration time. I
hate using char[], but I have no choice it seems.
It would be really fun to set up a shared heap using a memory manager with
mutexes, etc. I looked at ACE, but there seems to be a lot baggage.
I'm converting VC 6.0 MFC apps to VC 7.0 and beyond, maintaining MFC for the
most part.
Thanks
Bill