Click here to Skip to main content
15,907,906 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: sorry, neglect the first msg: I pasted the wrong stuff Pin
Christian Graus4-Nov-02 21:45
protectorChristian Graus4-Nov-02 21:45 
GeneralRe: sorry, neglect the first msg: I pasted the wrong stuff Pin
devvvy4-Nov-02 21:51
devvvy4-Nov-02 21:51 
GeneralRe: sorry, neglect the first msg: I pasted the wrong stuff Pin
Christian Graus4-Nov-02 21:55
protectorChristian Graus4-Nov-02 21:55 
GeneralRe: sorry, neglect the first msg: I pasted the wrong stuff Pin
devvvy4-Nov-02 21:58
devvvy4-Nov-02 21:58 
Generalfound the ppt file, but... Pin
devvvy4-Nov-02 22:16
devvvy4-Nov-02 22:16 
Generalhere's a lead: Pin
devvvy4-Nov-02 22:27
devvvy4-Nov-02 22:27 
GeneralIPC: named shared memory Pin
devvvy4-Nov-02 20:46
devvvy4-Nov-02 20:46 
GeneralRe: IPC: named shared memory Pin
Daniel Lohmann4-Nov-02 22:58
Daniel Lohmann4-Nov-02 22:58 
norm wrote:
can i programatically generate a GUID to use as the "name" of "named shared memory" created by call to CreateFileMapping(..) ??

CoCreateGuid() will do it Smile | :)

norm wrote:
and if I want to create "no-name" file mapping, how can I communicate the handle to the file mapping object to a separate process? WM_COPYDATE??

Yes, this means you have to use some other IPC channel to send the HANDLE to the target process. WM_COPYDATA is one idea, if the first process creates the second one, you could also use handle inheritance.

However, a named object is usually the most convinient solution.

BTW: I recommend to use not only a GUID for the name, but also a "human readable" part (somthing like My_app_shared_data_63dcc4b9-b122-4337-b897-88f6a7f49f3f). This would make it much easier for you and others to find your section in tools like Process Explorer and other debugging tools.

--

Daniel Lohmann

http://www.losoft.de
(Hey, this page is worth looking! You can find some free and handy NT tools there Big Grin | :-D )
GeneralRe: IPC: named shared memory Pin
devvvy5-Nov-02 6:59
devvvy5-Nov-02 6:59 
GeneralRe: IPC: named shared memory Pin
Daniel Lohmann5-Nov-02 12:42
Daniel Lohmann5-Nov-02 12:42 
GeneralUsing CStirng in .c file Pin
ooosawaddee34-Nov-02 20:08
ooosawaddee34-Nov-02 20:08 
GeneralRe: Using CStirng in .c file Pin
Joaquín M López Muñoz4-Nov-02 20:16
Joaquín M López Muñoz4-Nov-02 20:16 
Generalinvalid progID Pin
devvvy4-Nov-02 19:49
devvvy4-Nov-02 19:49 
GeneralRe: invalid progID Pin
Daniel Turini4-Nov-02 20:53
Daniel Turini4-Nov-02 20:53 
GeneralRe: invalid progID Pin
devvvy4-Nov-02 20:56
devvvy4-Nov-02 20:56 
GeneralRe: invalid progID Pin
devvvy4-Nov-02 21:08
devvvy4-Nov-02 21:08 
Generalservice pack 5? Pin
devvvy5-Nov-02 12:12
devvvy5-Nov-02 12:12 
GeneralRe: service pack 5? Pin
Daniel Turini5-Nov-02 21:08
Daniel Turini5-Nov-02 21:08 
GeneralGetting Mouse Cords while its over a owner drawn button Pin
cleathley4-Nov-02 19:15
cleathley4-Nov-02 19:15 
GeneralRe: Getting Mouse Cords while its over a owner drawn button Pin
Joan M4-Nov-02 23:15
professionalJoan M4-Nov-02 23:15 
GeneralRe: Getting Mouse Cords while its over a owner drawn button Pin
cleathley5-Nov-02 17:31
cleathley5-Nov-02 17:31 
QuestionUser requirements? Pin
Matthew R. Miller4-Nov-02 18:58
Matthew R. Miller4-Nov-02 18:58 
AnswerRe: User requirements? Pin
Michael Dunn4-Nov-02 19:37
sitebuilderMichael Dunn4-Nov-02 19:37 
AnswerRe: User requirements? Pin
Chris Losinger4-Nov-02 19:38
professionalChris Losinger4-Nov-02 19:38 
QuestionHow to change number data from base 256 to base 16? Pin
ooosawaddee34-Nov-02 18:35
ooosawaddee34-Nov-02 18:35 

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.