Click here to Skip to main content
15,917,328 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Prevent CDialog activation. Pin
ThatsAlok11-Aug-05 22:45
ThatsAlok11-Aug-05 22:45 
GeneralRe: Prevent CDialog activation. Pin
mintguy11-Aug-05 20:23
mintguy11-Aug-05 20:23 
GeneralRe: Prevent CDialog activation. Pin
Jose Lamas Rios11-Aug-05 20:46
Jose Lamas Rios11-Aug-05 20:46 
GeneralRe: Prevent CDialog activation. Pin
mintguy11-Aug-05 20:54
mintguy11-Aug-05 20:54 
GeneralApplication crash due to change in compiler settings Pin
ComplexLifeForm11-Aug-05 10:01
ComplexLifeForm11-Aug-05 10:01 
GeneralRe: Application crash due to change in compiler settings Pin
geo_m13-Aug-05 21:58
geo_m13-Aug-05 21:58 
GeneralWaiting for a command to complete Pin
jet91511-Aug-05 8:46
jet91511-Aug-05 8:46 
GeneralRe: Waiting for a command to complete Pin
David Crow11-Aug-05 9:01
David Crow11-Aug-05 9:01 
jet915 wrote:
My C++ application makes system calls, that use cmd.exe ( net use, copy, run .exe, getmac )

Why use this antiquated approach when functions exist for just such purposes?

jet915 wrote:
So I tried CreateProcess() but I my exe could be running on any windows platform including Win 95/98. CreateProcess has some compatiblity issues with these version and hiding the window, from what i have read.

It works on Windows 95 according to MSDN. What specifically did you read?

jet915 wrote:
So I tried ShellExecute() but again I was unable to get the parent thread to wait for the command to terminate.

It's part of the PROCESS_INFORMATION structure.

jet915 wrote:
can show me how to wait...

PROCESS_INFORMATION pi;
...
CreateProcess(..., &pi);
WaitForSingleObject(pi.hProcess, INFINITE);



"One must learn from the bite of the fire to leave it alone." - Native American Proverb


GeneralRe: Waiting for a command to complete Pin
Garth J Lancaster11-Aug-05 12:34
professionalGarth J Lancaster11-Aug-05 12:34 
Generalneed help with windbg Pin
valerie9911-Aug-05 7:45
valerie9911-Aug-05 7:45 
GeneralRe: need help with windbg Pin
David Crow11-Aug-05 8:15
David Crow11-Aug-05 8:15 
GeneralRe: need help with windbg Pin
valerie9911-Aug-05 8:50
valerie9911-Aug-05 8:50 
Generalmnemonic access key and tabstop = false Pin
23_44411-Aug-05 7:38
23_44411-Aug-05 7:38 
GeneralRe: mnemonic access key and tabstop = false Pin
David Crow11-Aug-05 8:18
David Crow11-Aug-05 8:18 
GeneralRe: mnemonic access key and tabstop = false Pin
23_44411-Aug-05 8:30
23_44411-Aug-05 8:30 
GeneralRe: mnemonic access key and tabstop = false Pin
23_44411-Aug-05 8:52
23_44411-Aug-05 8:52 
Generalhelp me -> menu Pin
Anonymous11-Aug-05 4:33
Anonymous11-Aug-05 4:33 
GeneralRe: help me -> menu Pin
Cedric Moonen11-Aug-05 4:37
Cedric Moonen11-Aug-05 4:37 
GeneralRe: help me -> menu Pin
toxcct11-Aug-05 5:35
toxcct11-Aug-05 5:35 
Generalprinting a vector Pin
Eytukan11-Aug-05 4:13
Eytukan11-Aug-05 4:13 
GeneralRe: printing a vector Pin
Cedric Moonen11-Aug-05 4:25
Cedric Moonen11-Aug-05 4:25 
GeneralRe: printing a vector Pin
Eytukan11-Aug-05 4:37
Eytukan11-Aug-05 4:37 
GeneralRe: printing a vector Pin
Cedric Moonen11-Aug-05 4:41
Cedric Moonen11-Aug-05 4:41 
GeneralRe: printing a vector Pin
Marc Soleda11-Aug-05 4:34
Marc Soleda11-Aug-05 4:34 
GeneralRe: printing a vector Pin
Cedric Moonen11-Aug-05 4:39
Cedric Moonen11-Aug-05 4:39 

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.