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

C / C++ / MFC

 
Generalerror C1010 Pin
dadacncn29-Mar-04 4:40
dadacncn29-Mar-04 4:40 
GeneralRe: error C1010 Pin
ohadp29-Mar-04 4:48
ohadp29-Mar-04 4:48 
GeneralRe: error C1010 Pin
dadacncn29-Mar-04 4:51
dadacncn29-Mar-04 4:51 
GeneralWaitForSingleObject - Handle for ShellExecute() Pin
ndalal29-Mar-04 4:38
ndalal29-Mar-04 4:38 
GeneralRe: WaitForSingleObject - Handle for ShellExecute() Pin
basementman29-Mar-04 4:44
basementman29-Mar-04 4:44 
GeneralRe: WaitForSingleObject - Handle for ShellExecute() Pin
ndalal29-Mar-04 4:50
ndalal29-Mar-04 4:50 
GeneralRe: WaitForSingleObject - Handle for ShellExecute() Pin
David Crow29-Mar-04 5:07
David Crow29-Mar-04 5:07 
GeneralRe: WaitForSingleObject - Handle for ShellExecute() Pin
ndalal29-Mar-04 6:09
ndalal29-Mar-04 6:09 
I'm not sure if I can execute a batch file on command line using CreateProcess.
Note that the batch file include several different commands (compile and link) which needs to execute on the "same" command line window.

CreateProcess execute an application with one command only. I'm not sure if it can execute a batch file.

If I execute the following code, I get exception handling error on CreateProcess() line.

===============================================
PROCESS_INFORMATION pi;
if(CreateProcess("foo.bat", NULL, NULL, NULL, FALSE, CREATE_DEFAULT_ERROR_MODE, NULL, NULL, NULL, &pi) == FALSE) {
return S_FALSE;
}

do {
mutex = WaitForSingleObject(pi.hProcess,INFINITE);
} while(mutex == WAIT_OBJECT_0);


GeneralRe: WaitForSingleObject - Handle for ShellExecute() Pin
David Crow29-Mar-04 6:20
David Crow29-Mar-04 6:20 
GeneralRe: WaitForSingleObject - Handle for ShellExecute() Pin
Michael Dunn29-Mar-04 8:45
sitebuilderMichael Dunn29-Mar-04 8:45 
GeneralPrinting in a dialog based application Pin
Member 426420329-Mar-04 4:12
Member 426420329-Mar-04 4:12 
GeneralRe: Printing in a dialog based application Pin
Antti Keskinen29-Mar-04 4:38
Antti Keskinen29-Mar-04 4:38 
GeneralRe: Printing in a dialog based application Pin
Roger Allen30-Mar-04 0:53
Roger Allen30-Mar-04 0:53 
Questionstatic array of base class pointers?? Pin
LudaLuda29-Mar-04 4:00
LudaLuda29-Mar-04 4:00 
AnswerRe: static array of base class pointers?? Pin
ohadp29-Mar-04 4:37
ohadp29-Mar-04 4:37 
GeneralRe: static array of base class pointers?? Pin
LudaLuda29-Mar-04 4:53
LudaLuda29-Mar-04 4:53 
GeneralRe: static array of base class pointers?? Pin
ohadp29-Mar-04 4:57
ohadp29-Mar-04 4:57 
GeneralAdd protocol programatically Pin
Reza Shademani29-Mar-04 3:42
Reza Shademani29-Mar-04 3:42 
GeneralPNP_INFO again Pin
Member 67007929-Mar-04 3:33
Member 67007929-Mar-04 3:33 
Generalexpert advice needed (query results) Pin
BlackDice29-Mar-04 3:22
BlackDice29-Mar-04 3:22 
GeneralRe: expert advice needed (query results) Pin
David Crow29-Mar-04 4:29
David Crow29-Mar-04 4:29 
GeneralRe: expert advice needed (query results) Pin
BlackDice29-Mar-04 5:04
BlackDice29-Mar-04 5:04 
GeneralRe: expert advice needed (query results) Pin
ohadp29-Mar-04 4:30
ohadp29-Mar-04 4:30 
GeneralRe: expert advice needed (query results) Pin
basementman29-Mar-04 4:40
basementman29-Mar-04 4:40 
GeneralRe: expert advice needed (query results) Pin
BlackDice29-Mar-04 5:06
BlackDice29-Mar-04 5:06 

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.