Click here to Skip to main content
16,011,608 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CreateProcess vs WinExec Pin
Neville Franks20-Feb-05 8:38
Neville Franks20-Feb-05 8:38 
GeneralRe: CreateProcess vs WinExec Pin
Dominik Reichl20-Feb-05 9:10
Dominik Reichl20-Feb-05 9:10 
GeneralRe: CreateProcess vs WinExec Pin
Neville Franks20-Feb-05 9:18
Neville Franks20-Feb-05 9:18 
GeneralRe: CreateProcess vs WinExec Pin
Dominik Reichl20-Feb-05 9:26
Dominik Reichl20-Feb-05 9:26 
GeneralRe: CreateProcess vs WinExec Pin
Graham Bradshaw20-Feb-05 10:34
Graham Bradshaw20-Feb-05 10:34 
GeneralRe: CreateProcess vs WinExec Pin
Ryan Binns20-Feb-05 17:03
Ryan Binns20-Feb-05 17:03 
GeneralRe: CreateProcess vs WinExec Pin
Dominik Reichl21-Feb-05 6:59
Dominik Reichl21-Feb-05 6:59 
GeneralRe: CreateProcess vs WinExec Pin
Neville Franks20-Feb-05 12:39
Neville Franks20-Feb-05 12:39 
Dominik Reichl wrote:
Hm.. Ok, now the hh.exe starts at least... Hh.exe is in my Windows directory, will it always be there? (under WinNT in WinNT directory?) Even if using the GetWindowsDirectory function, it's a dangerous assumption...

Agreed. You need to follow the same rules as WinExec.

The directory from which the application loaded. 
The current directory. 
The Windows system directory. TheGetSystemDirectory function retrieves the path of this directory. 
The Windows directory. TheGetWindowsDirectory function retrieves the path of this directory. 
The directories listed in the PATH environment variable. 



Dominik Reichl wrote:
But now I get an error from the hh.exe: no command line was specified?!??!

Does it work if you specify just the filename?

Neville Franks, Author of ED for Windows www.getsoft.com and Surfulater www.surfulater.com "Save what you Surf"
GeneralRe: CreateProcess vs WinExec Pin
Dominik Reichl21-Feb-05 6:53
Dominik Reichl21-Feb-05 6:53 
GeneralRe: CreateProcess vs WinExec Pin
David Crow21-Feb-05 4:20
David Crow21-Feb-05 4:20 
GeneralRe: CreateProcess vs WinExec Pin
Blake Miller22-Feb-05 6:46
Blake Miller22-Feb-05 6:46 
GeneralRe: CreateProcess vs WinExec Pin
Dominik Reichl22-Feb-05 8:25
Dominik Reichl22-Feb-05 8:25 
GeneralMinimize event Pin
Deian20-Feb-05 6:13
Deian20-Feb-05 6:13 
GeneralRe: Minimize event Pin
Dominik Reichl20-Feb-05 6:57
Dominik Reichl20-Feb-05 6:57 
GeneralRe: Minimize event Pin
Deian20-Feb-05 7:07
Deian20-Feb-05 7:07 
Questiondelay() function equivalent in VC++ 6.0 -- is there any? Pin
ur_unholyness20-Feb-05 2:42
ur_unholyness20-Feb-05 2:42 
AnswerRe: delay() function equivalent in VC++ 6.0 -- is there any? Pin
eli1502197920-Feb-05 3:57
eli1502197920-Feb-05 3:57 
GeneralDialog box on Toolbar Control Pin
jw8120-Feb-05 1:58
jw8120-Feb-05 1:58 
GeneralRandom Numbers Pin
Renjith Ramachandran19-Feb-05 20:38
Renjith Ramachandran19-Feb-05 20:38 
GeneralRe: Random Numbers Pin
Kevin McFarlane20-Feb-05 0:05
Kevin McFarlane20-Feb-05 0:05 
GeneralRe: Random Numbers Pin
Ryan Binns20-Feb-05 17:08
Ryan Binns20-Feb-05 17:08 
GeneralRe: Random Numbers Pin
Kevin McFarlane25-Feb-05 8:00
Kevin McFarlane25-Feb-05 8:00 
GeneralRe: Random Numbers Pin
Ryan Binns26-Feb-05 18:51
Ryan Binns26-Feb-05 18:51 
GeneralRe: Random Numbers Pin
eli1502197920-Feb-05 0:14
eli1502197920-Feb-05 0:14 
GeneralRe: Random Numbers Pin
Renjith Ramachandran20-Feb-05 0:56
Renjith Ramachandran20-Feb-05 0:56 

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.