Click here to Skip to main content
       

C / C++ / MFC

 
GeneralRe: error C2678: binary '=' PinmemberChris Meech13-Dec-12 8:17 
GeneralRe: error C2678: binary '=' Pinmemberalaaan7313-Dec-12 8:59 
GeneralRe: error C2678: binary '=' PinmemberChris Meech13-Dec-12 9:06 
GeneralRe: error C2678: binary '=' Pinmemberalaaan7313-Dec-12 9:24 
GeneralRe: error C2678: binary '=' PinmemberFreak3014-Dec-12 0:48 
AnswerRe: error C2678: binary '=' PinmvpRichard MacCutchan13-Dec-12 7:33 
GeneralRe: error C2678: binary '=' Pinmemberalaaan7313-Dec-12 7:55 
Questionprocess Pinmembermessages13-Dec-12 3:45 
Hi everyone
I have three questions
1.why do I need to use of TEXT macro in my codes and if I remove it compiler shows error
2.why CreateProcess cant open test.txt while second parameter is command line and I have to write full path ("c:\\notepad.exe c:\\1.txt")
3.Do I need to use of WaitForSingleObject
STARTUPINFO si;
PROCESS_INFORMATION pi;
ZeroMemory( &si, sizeof(si) );
si.cb = sizeof (STARTUPINFO);
GetStartupInfo (&si);
si.dwFlags = STARTF_USESHOWWINDOW |STARTF_TITLEISAPPID ;
si.wShowWindow = SW_SHOWMAXIMIZED;
si.lpTitle=TEXT("Test");
if(CreateProcess(TEXT("c:\\notepad.exe"),TEXT("c:\\test.txt"),NULL,
NULL,FALSE,NULL,NULL,NULL,&si,&pi))
{
//WaitForSingleObject(pi.hProcess, INFINITE);
CloseHandle(pi.hProcess);
CloseHandle(pi.hThread);
}
 
Thanks
AnswerRe: process PinmemberDavidCrow13-Dec-12 4:14 
GeneralRe: process Pinmembermessages13-Dec-12 4:18 
Questionexporting data from C++ to C Pinmemberdanielsutopo12-Dec-12 15:00 
AnswerRe: exporting data from C++ to C PinmvpRichard MacCutchan12-Dec-12 22:35 
GeneralRe: exporting data from C++ to C Pinmemberdanielsutopo15-Dec-12 13:45 
GeneralRe: exporting data from C++ to C PinmvpRichard MacCutchan15-Dec-12 20:59 
GeneralRe: exporting data from C++ to C Pinmemberdanielsutopo16-Dec-12 11:50 
GeneralRe: exporting data from C++ to C PinmvpRichard MacCutchan16-Dec-12 21:47 
AnswerRe: exporting data from C++ to C PinmemberAlbert Holguin13-Dec-12 5:26 
QuestionOverlaying Text over Video PinmemberSrivathsanRaghavan11-Dec-12 19:25 
AnswerRe: Overlaying Text over Video PinmvpRichard MacCutchan11-Dec-12 21:05 
Questionerror C2065: 'xlSheetVisible' undeclared PinmemberForNow11-Dec-12 10:18 
QuestionRe: error C2065: 'xlSheetVisible' undeclared PinmvpRichard MacCutchan11-Dec-12 11:12 
AnswerRe: error C2065: 'xlSheetVisible' undeclared PinmemberForNow11-Dec-12 11:19 
GeneralRe: error C2065: 'xlSheetVisible' undeclared PinmvpRichard MacCutchan11-Dec-12 11:25 
GeneralRe: error C2065: 'xlSheetVisible' undeclared PinmemberForNow11-Dec-12 11:41 
GeneralRe: error C2065: 'xlSheetVisible' undeclared PinmvpRichard MacCutchan11-Dec-12 11:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.140821.2 | Last Updated 22 Aug 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid