Click here to Skip to main content
15,912,400 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: NMAKE can't find include file in subfolder Pin
bjorn_ht22-Feb-12 23:35
bjorn_ht22-Feb-12 23:35 
GeneralRe: NMAKE can't find include file in subfolder Pin
Richard MacCutchan23-Feb-12 2:38
mveRichard MacCutchan23-Feb-12 2:38 
GeneralRe: NMAKE can't find include file in subfolder Pin
bjorn_ht23-Feb-12 5:15
bjorn_ht23-Feb-12 5:15 
GeneralRe: NMAKE can't find include file in subfolder Pin
Richard MacCutchan23-Feb-12 6:24
mveRichard MacCutchan23-Feb-12 6:24 
GeneralRe: NMAKE can't find include file in subfolder Pin
bjorn_ht23-Feb-12 9:44
bjorn_ht23-Feb-12 9:44 
GeneralRe: NMAKE can't find include file in subfolder Pin
Alan Balkany24-Feb-12 5:37
Alan Balkany24-Feb-12 5:37 
Questions it safe to pass CComVariant declared locally ot other function Pin
ptr_Electron22-Feb-12 3:55
ptr_Electron22-Feb-12 3:55 
AnswerRe: s it safe to pass CComVariant declared locally ot other function Pin
Jochen Arndt22-Feb-12 4:39
professionalJochen Arndt22-Feb-12 4:39 
QuestionHow to check CComVariant.boolval is valid and extract bool value from it Pin
ptr_Electron22-Feb-12 3:51
ptr_Electron22-Feb-12 3:51 
AnswerRe: How to check CComVariant.boolval is valid and extract bool value from it Pin
bjorn_ht22-Feb-12 4:44
bjorn_ht22-Feb-12 4:44 
AnswerRe: How to check CComVariant.boolval is valid and extract bool value from it Pin
Jochen Arndt22-Feb-12 4:48
professionalJochen Arndt22-Feb-12 4:48 
Questionstandard c_str() problem in C++ Pin
Anitesh Kumar21-Feb-12 17:45
Anitesh Kumar21-Feb-12 17:45 
AnswerRe: standard c_str() problem in C++ PinPopular
Emilio Garavaglia21-Feb-12 20:10
Emilio Garavaglia21-Feb-12 20:10 
GeneralRe: standard c_str() problem in C++ Pin
CPallini22-Feb-12 0:18
mveCPallini22-Feb-12 0:18 
GeneralRe: standard c_str() problem in C++ Pin
Eytukan22-Feb-12 0:52
Eytukan22-Feb-12 0:52 
QuestionBest way to check if a thread is still active c++ win32 Pin
jkirkerx21-Feb-12 11:35
professionaljkirkerx21-Feb-12 11:35 
QuestionRe: Best way to check if a thread is still active c++ win32 Pin
Randor 21-Feb-12 14:27
professional Randor 21-Feb-12 14:27 
AnswerRe: Best way to check if a thread is still active c++ win32 Pin
jkirkerx21-Feb-12 15:18
professionaljkirkerx21-Feb-12 15:18 
GeneralRe: Best way to check if a thread is still active c++ win32 Pin
Randor 21-Feb-12 16:55
professional Randor 21-Feb-12 16:55 
jkirkerx wrote:
The original problem that lead to the question was that when the program running in the process was canceled, or halted due to a requirement missing, the cosmetic loop would still be running, instead of exiting and sending the appropriate message to the message pump to go to the next stage.


I actually have something to say about this. I have noticed over the last few years that many of the younger junior programmers coming out of college are no longer using exit codes. I have noticed this in many of the recent Microsoft products and applications from various other software vendors. I believe it is probably because most of us older engineers have experience with the Unix and DOS shell and have extensively used exit codes in bash,cshrc scripts and/or DOS batch files.

Unfortunately since the installer you are using is not returning an exit code upon cancellation... you may need to think outside the box and come up with a creative way to determine if your installer has completed. I noticed that one of your variable names was associated with Microsoft SQL Server... so maybe you could check the registry keys under the tree: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\

Finally, I would encourage you (and anyone reading this) to think of this experience as a lesson; Exit codes might be useful to someone... rather than always return 0; consider returning a useful value that reflects the outcome of the task.


-Best Wishes,
-David Delaune
GeneralRe: Best way to check if a thread is still active c++ win32 Pin
jkirkerx21-Feb-12 17:05
professionaljkirkerx21-Feb-12 17:05 
AnswerRe: Best way to check if a thread is still active c++ win32 Pin
Chuck O'Toole21-Feb-12 14:29
Chuck O'Toole21-Feb-12 14:29 
GeneralRe: Best way to check if a thread is still active c++ win32 Pin
jkirkerx21-Feb-12 15:28
professionaljkirkerx21-Feb-12 15:28 
AnswerRe: Best way to check if a thread is still active c++ win32 Pin
Chuck O'Toole21-Feb-12 16:12
Chuck O'Toole21-Feb-12 16:12 
AnswerComplete code for CreateProcess and loop Pin
jkirkerx21-Feb-12 15:26
professionaljkirkerx21-Feb-12 15:26 
AnswerRe: Complete code for CreateProcess and loop Pin
Chuck O'Toole21-Feb-12 16:22
Chuck O'Toole21-Feb-12 16:22 

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.