Click here to Skip to main content
15,911,306 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralThank You CodeProject Pin
gUrM33T4-May-04 4:44
gUrM33T4-May-04 4:44 
GeneralRe: Thank You CodeProject Pin
jmkhael4-May-04 4:51
jmkhael4-May-04 4:51 
GeneralAckermann Function Pin
pmasknguyen4-May-04 4:24
pmasknguyen4-May-04 4:24 
GeneralRe: Ackermann Function Pin
Jens Doose4-May-04 4:36
Jens Doose4-May-04 4:36 
GeneralFinding Mem Usage of another program Pin
tjkrz4-May-04 4:16
tjkrz4-May-04 4:16 
GeneralRe: Finding Mem Usage of another program Pin
Joe Woodbury4-May-04 4:23
professionalJoe Woodbury4-May-04 4:23 
GeneralRe: Finding Mem Usage of another program Pin
Dudi Avramov4-May-04 5:08
Dudi Avramov4-May-04 5:08 
GeneralShellExecute in VC++ Pin
PrashantJ4-May-04 4:07
PrashantJ4-May-04 4:07 
Hi,

I have an executable being invoked from a VC++ code through ShellExecute. After the completing of this executable, I have got a list of jobs to be performed in a sequence.
But when I run this application, ShellExecute will create a different shell and execute the exe (which is as expected) and the list of jobs will also be executed before the completion of the execution of my exe.

eg.
ShellExecute(GetSafeHwnd(), "open", print.exe, params, NULL, SW_HIDE);
task1
task2
task3

I want print.exe to execute first and then go execute task1, task2, task3 in a sequence.

I want to know whether we have any synchronization method which can be invoked just before task1 so that the control will flow in a sequence.

print.exe is executed only thro' ShellExecute().
Either a system() call, WinExec() etc will not work.
Please help me out.

Thanks,
Prashant
GeneralRe: ShellExecute in VC++ Pin
Jens Doose4-May-04 4:22
Jens Doose4-May-04 4:22 
GeneralRe: ShellExecute in VC++ Pin
PrashantJ4-May-04 21:00
PrashantJ4-May-04 21:00 
Generalabout inline. Pin
vividtang4-May-04 4:02
vividtang4-May-04 4:02 
GeneralRe: about inline. Pin
Joe Woodbury4-May-04 4:18
professionalJoe Woodbury4-May-04 4:18 
GeneralRe: about inline. Pin
vividtang4-May-04 15:17
vividtang4-May-04 15:17 
GeneralRe: about inline. Pin
Joe Woodbury4-May-04 19:32
professionalJoe Woodbury4-May-04 19:32 
GeneralRe: about inline. Pin
toxcct4-May-04 21:58
toxcct4-May-04 21:58 
GeneralProblem with std::map insert Pin
ykutanoor4-May-04 4:01
ykutanoor4-May-04 4:01 
GeneralRe: Problem with std::map insert Pin
Jens Doose4-May-04 4:20
Jens Doose4-May-04 4:20 
GeneralRe: Problem with std::map insert Pin
Dean Goodman4-May-04 4:28
Dean Goodman4-May-04 4:28 
GeneralProblem with std::map Pin
ykutanoor4-May-04 4:01
ykutanoor4-May-04 4:01 
GeneralRe: Problem with std::map Pin
Paul Ranson4-May-04 10:03
Paul Ranson4-May-04 10:03 
GeneralProblem with std::map Pin
ykutanoor4-May-04 4:00
ykutanoor4-May-04 4:00 
GeneralWin binaries and UNIX Pin
jimNLX4-May-04 3:58
jimNLX4-May-04 3:58 
GeneralRe: Win binaries and UNIX Pin
Antony M Kancidrowski4-May-04 4:39
Antony M Kancidrowski4-May-04 4:39 
GeneralRe: Win binaries and UNIX Pin
Dean Goodman4-May-04 4:45
Dean Goodman4-May-04 4:45 
GeneralRe: Win binaries and UNIX Pin
Michael Dunn4-May-04 6:11
sitebuilderMichael Dunn4-May-04 6:11 

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.