Click here to Skip to main content
15,900,511 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Because, when you pass the command line, you usually have to include the full file path to the EXE as the first argument on the command line. Traditionally, argv[0] is the path to the program and ANY arguments after that are of interest, so, try this instead...

STARTUPINFO sui;PROCESS_INFORMATION pi;ZeroMemory(&sui, sizeof(STARTUPINFO); sui.cb = sizeof(STARTUPINFO);ZeroMemory(&pi, sizeof(PROCESS_INFORMATION);CreateProcess("hh.exe", "hh.exe MyHelpFile.chm::features.html", NULL, NULL, FALSE, 0, NULL, NULL, &sui, &pi);

Note that I ONLY typed in hh.exe at beginning of command line, you might actually need the FULL file path..

STARTUPINFO sui;
PROCESS_INFORMATION pi;
ZeroMemory(&sui, sizeof(STARTUPINFO);
sui.cb = sizeof(STARTUPINFO);
ZeroMemory(&pi, sizeof(PROCESS_INFORMATION);
CreateProcess("hh.exe", "<full path="" to="" hh.exe="" here=""> <full path="" to="" help="" file="" here="">::features.html", NULL, NULL, FALSE, 0, NULL, NULL, &sui, &pi);

See if that works...
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 
GeneralRe: Random Numbers Pin
Kevin McFarlane20-Feb-05 4:39
Kevin McFarlane20-Feb-05 4:39 
GeneralRe: Random Numbers Pin
nadzzz20-Feb-05 7:22
nadzzz20-Feb-05 7:22 
GeneralRe: Random Numbers Pin
David Crow21-Feb-05 4:24
David Crow21-Feb-05 4:24 

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.