Click here to Skip to main content
15,911,785 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Sharing dynamically allocated data across DLL instances? Pin
Stephen Kellett29-Jun-01 5:25
Stephen Kellett29-Jun-01 5:25 
You are correct they will be in their private address space.
However you could pass messages with object index in them.
Each process would have its own objects and you'd gain access to them
via the object index/id which you would use as a hashtable key/array index/
whatever.

You could also try something with a memory mapped file. All processes could
map the same file and try for the same load address. Then write your objects
in there. Yuck. Or worse, they don't load at the same address, so them you
are down to offsets from the memory mapped file address. Double yuck.

Can't think of anything for now...

Stephen Kellett
--
C++/Java/Win NT/Unix variants
Memory leaks/corruptions/performance/system problems. UK based.
Problems with RSI/WRULD? Contact me for advice.

GeneralRe: Sharing dynamically allocated data across DLL instances? Pin
Jamie Nordmeyer6-Aug-01 18:14
Jamie Nordmeyer6-Aug-01 18:14 
AnswerRe: Sharing dynamically allocated data across DLL instances? Pin
Matt Gullett6-Aug-01 18:48
Matt Gullett6-Aug-01 18:48 
AnswerRe: Sharing dynamically allocated data across DLL instances? Pin
6-Aug-01 19:05
suss6-Aug-01 19:05 
Questionkeyboard Hook that before was working outsida a DLL now it don't... could you take a look at it? Pin
Joan M28-Jun-01 5:37
professionalJoan M28-Jun-01 5:37 
QuestionHow to capture an app's stdout? Pin
Alvaro Mendez28-Jun-01 5:22
Alvaro Mendez28-Jun-01 5:22 
AnswerRe: How to capture an app's stdout? Pin
Tomasz Sowinski28-Jun-01 5:35
Tomasz Sowinski28-Jun-01 5:35 
GeneralMessage Box Pin
28-Jun-01 4:57
suss28-Jun-01 4:57 
GeneralRe: Message Box Pin
Michael P Butler29-Jun-01 3:22
Michael P Butler29-Jun-01 3:22 
GeneralRe: Message Box Pin
29-Jun-01 4:34
suss29-Jun-01 4:34 
GeneralRe: Message Box Pin
2-Jul-01 20:06
suss2-Jul-01 20:06 
GeneralWM_INPUTLANGCHANGEREQUEST Pin
28-Jun-01 4:03
suss28-Jun-01 4:03 
GeneralRe: WM_INPUTLANGCHANGEREQUEST Pin
28-Jun-01 4:50
suss28-Jun-01 4:50 
GeneralRe: WM_INPUTLANGCHANGEREQUEST Pin
28-Jun-01 5:15
suss28-Jun-01 5:15 
GeneralRe: WM_INPUTLANGCHANGEREQUEST Pin
28-Jun-01 9:49
suss28-Jun-01 9:49 
Generalcatch value with vc++ Pin
Gérald Mercet28-Jun-01 4:03
Gérald Mercet28-Jun-01 4:03 
Generalcatch value with vc++ Pin
28-Jun-01 3:59
suss28-Jun-01 3:59 
GeneralVirtual directory Pin
28-Jun-01 2:59
suss28-Jun-01 2:59 
GeneralRe: Virtual directory Pin
Erik Funkenbusch28-Jun-01 11:17
Erik Funkenbusch28-Jun-01 11:17 
QuestionHow to use RegQueryMultipleValues fnc Pin
28-Jun-01 2:44
suss28-Jun-01 2:44 
Generalmouse click problem in ownerdraw menu Pin
Paul Goodyear28-Jun-01 1:47
Paul Goodyear28-Jun-01 1:47 
GeneralRe: mouse click problem in ownerdraw menu Pin
Paul Goodyear28-Jun-01 5:33
Paul Goodyear28-Jun-01 5:33 
GeneralPreprocessor defines and MFC Pin
Serge A. Zhirko28-Jun-01 1:15
Serge A. Zhirko28-Jun-01 1:15 
Generalcursor position Pin
28-Jun-01 1:11
suss28-Jun-01 1:11 
GeneralRe: cursor position Pin
Anders Molin28-Jun-01 3:01
professionalAnders Molin28-Jun-01 3:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.