Click here to Skip to main content
15,888,113 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCView/CDoc Pin
mr200328-Jun-01 6:36
mr200328-Jun-01 6:36 
Generaldialog focus Pin
28-Jun-01 6:21
suss28-Jun-01 6:21 
GeneralRe: dialog focus Pin
Carlos Antollini28-Jun-01 6:42
Carlos Antollini28-Jun-01 6:42 
GeneralRe: dialog focus Pin
28-Jun-01 6:53
suss28-Jun-01 6:53 
QuestionSharing dynamically allocated data across DLL instances? Pin
Jim A. Johnson28-Jun-01 5:38
Jim A. Johnson28-Jun-01 5:38 
AnswerRe: Sharing dynamically allocated data across DLL instances? Pin
Stephen Kellett29-Jun-01 5:25
Stephen Kellett29-Jun-01 5:25 
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 
Is an NT service an option? If so, this is a good way to do what you asked.

If not (and MFC is an option), look at the CMemFile class. There are samples on MSDN.

If MFC and CMemFile are not an option you can still use API functions to create memory mapped files. Check out this link to the MSDN library:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/hh/winbase/dll_9khl.asp

If none of these options will work for you, you can create a second EXE which will host a named pipe or other inter-process communication layer (TCPIP listner) which can be launched to distribute the data. (This is probably overkill, though.)

Thanks

Matt Gullett
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 

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.