Click here to Skip to main content
16,016,693 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: vcspawn.exe is not found Pin
jmkhael2-Jun-04 3:19
jmkhael2-Jun-04 3:19 
GeneralRe: vcspawn.exe is not found Pin
Member 656282-Jun-04 4:07
Member 656282-Jun-04 4:07 
QuestionCEvent? Pin
MrEyes2-Jun-04 1:23
MrEyes2-Jun-04 1:23 
AnswerRe: CEvent? Pin
erkanina2-Jun-04 1:35
erkanina2-Jun-04 1:35 
GeneralRe: CEvent? Pin
MrEyes2-Jun-04 1:37
MrEyes2-Jun-04 1:37 
AnswerRe: CEvent? Pin
Blake Miller2-Jun-04 4:05
Blake Miller2-Jun-04 4:05 
GeneralRe: CEvent? Pin
MrEyes2-Jun-04 4:21
MrEyes2-Jun-04 4:21 
GeneralRe: CEvent? Pin
Blake Miller2-Jun-04 4:34
Blake Miller2-Jun-04 4:34 
One thing I see here, is that I would not use the '-' or the spaces in your event name, just to be safe. It is good to use the GUID like you did, but I would collapse the name down to just the primary characters, like this:
"EventEngine10062004MICRG45469DD2F0868C319D02"

Also, your reset even is safe, as long as your C# app has not actually intentionally set it, in which case your C++ program will NEVER exit.

I generally use two events myself.
I use one like you did here, to signal the 'worker app' to exit, but I also use a second one that the 'master app' will wait for after it has started the worker app, to KNOW that the worker app has started. This blocks the starter app from inadvertently setting the 'kill' event before the worker app has started.
The master app does not wait infinite, it waits a certain amount of 'reasonable time' like 3 minutes, for the worker app to signal the started event, and if not seen in that time, you can assume the worker app did not start correctly.

Just something to keep in mind when you start wondering why your main app never shuts down...

GeneralRe: CEvent? Pin
David Chamberlain2-Jun-04 6:05
David Chamberlain2-Jun-04 6:05 
GeneralSocket messages Pin
erkanina2-Jun-04 1:22
erkanina2-Jun-04 1:22 
GeneralRe: Socket messages Pin
Trollslayer2-Jun-04 1:33
mentorTrollslayer2-Jun-04 1:33 
GeneralRe: Socket messages Pin
Antony M Kancidrowski2-Jun-04 1:33
Antony M Kancidrowski2-Jun-04 1:33 
GeneralRe: Socket messages Pin
erkanina2-Jun-04 1:54
erkanina2-Jun-04 1:54 
GeneralRe: Socket messages Pin
erkanina2-Jun-04 2:03
erkanina2-Jun-04 2:03 
Generalworking with CToolTipCtrl Pin
Aviv Halperin2-Jun-04 1:01
Aviv Halperin2-Jun-04 1:01 
GeneralI wnt to convert SDI project to MDI Pin
auur2-Jun-04 1:00
auur2-Jun-04 1:00 
GeneralRe: I wnt to convert SDI project to MDI Pin
David Crow2-Jun-04 3:08
David Crow2-Jun-04 3:08 
Generalwindows services Pin
Csharper992-Jun-04 0:57
Csharper992-Jun-04 0:57 
GeneralRe: windows services Pin
David Crow2-Jun-04 3:09
David Crow2-Jun-04 3:09 
GeneralRe: windows services Pin
Blake Miller2-Jun-04 4:14
Blake Miller2-Jun-04 4:14 
GeneralMenu Item Bitmap Pin
amine.turki2-Jun-04 0:51
amine.turki2-Jun-04 0:51 
GeneralRe: Menu Item Bitmap Pin
Anonymous2-Jun-04 1:31
Anonymous2-Jun-04 1:31 
GeneralMenu Item Bitmap Pin
amine.turki2-Jun-04 0:51
amine.turki2-Jun-04 0:51 
Generalvector to raster, have u ever heard Pin
neuconcongaymai2-Jun-04 0:39
neuconcongaymai2-Jun-04 0:39 
GeneralRe: vector to raster, have u ever heard Pin
neuconcongaymai2-Jun-04 23:31
neuconcongaymai2-Jun-04 23:31 

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.