Click here to Skip to main content
12,701,301 members (31,501 online)

C / C++ / MFC

 
GeneralRe: error C2678: binary '=' Pin
Chris Meech13-Dec-12 9:17
memberChris Meech13-Dec-12 9:17 
GeneralRe: error C2678: binary '=' Pin
alaaan7313-Dec-12 9:59
memberalaaan7313-Dec-12 9:59 
GeneralRe: error C2678: binary '=' Pin
Chris Meech13-Dec-12 10:06
memberChris Meech13-Dec-12 10:06 
GeneralRe: error C2678: binary '=' Pin
alaaan7313-Dec-12 10:24
memberalaaan7313-Dec-12 10:24 
GeneralRe: error C2678: binary '=' Pin
Freak3014-Dec-12 1:48
memberFreak3014-Dec-12 1:48 
AnswerRe: error C2678: binary '=' Pin
Richard MacCutchan13-Dec-12 8:33
mvpRichard MacCutchan13-Dec-12 8:33 
GeneralRe: error C2678: binary '=' Pin
alaaan7313-Dec-12 8:55
memberalaaan7313-Dec-12 8:55 
Questionprocess Pin
messages13-Dec-12 4:45
membermessages13-Dec-12 4: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 Pin
DavidCrow13-Dec-12 5:14
memberDavidCrow13-Dec-12 5:14 
GeneralRe: process Pin
messages13-Dec-12 5:18
membermessages13-Dec-12 5:18 
Questionexporting data from C++ to C Pin
danielsutopo12-Dec-12 16:00
memberdanielsutopo12-Dec-12 16:00 
AnswerRe: exporting data from C++ to C Pin
Richard MacCutchan12-Dec-12 23:35
mvpRichard MacCutchan12-Dec-12 23:35 
GeneralRe: exporting data from C++ to C Pin
danielsutopo15-Dec-12 14:45
memberdanielsutopo15-Dec-12 14:45 
GeneralRe: exporting data from C++ to C Pin
Richard MacCutchan15-Dec-12 21:59
mvpRichard MacCutchan15-Dec-12 21:59 
GeneralRe: exporting data from C++ to C Pin
danielsutopo16-Dec-12 12:50
memberdanielsutopo16-Dec-12 12:50 
GeneralRe: exporting data from C++ to C Pin
Richard MacCutchan16-Dec-12 22:47
mvpRichard MacCutchan16-Dec-12 22:47 
AnswerRe: exporting data from C++ to C Pin
Albert Holguin13-Dec-12 6:26
memberAlbert Holguin13-Dec-12 6:26 
QuestionOverlaying Text over Video Pin
SrivathsanRaghavan11-Dec-12 20:25
memberSrivathsanRaghavan11-Dec-12 20:25 
AnswerRe: Overlaying Text over Video Pin
Richard MacCutchan11-Dec-12 22:05
mvpRichard MacCutchan11-Dec-12 22:05 
Questionerror C2065: 'xlSheetVisible' undeclared Pin
ForNow11-Dec-12 11:18
memberForNow11-Dec-12 11:18 
QuestionRe: error C2065: 'xlSheetVisible' undeclared Pin
Richard MacCutchan11-Dec-12 12:12
mvpRichard MacCutchan11-Dec-12 12:12 
AnswerRe: error C2065: 'xlSheetVisible' undeclared Pin
ForNow11-Dec-12 12:19
memberForNow11-Dec-12 12:19 
GeneralRe: error C2065: 'xlSheetVisible' undeclared Pin
Richard MacCutchan11-Dec-12 12:25
mvpRichard MacCutchan11-Dec-12 12:25 
GeneralRe: error C2065: 'xlSheetVisible' undeclared Pin
ForNow11-Dec-12 12:41
memberForNow11-Dec-12 12:41 
GeneralRe: error C2065: 'xlSheetVisible' undeclared Pin
Richard MacCutchan11-Dec-12 12:48
mvpRichard MacCutchan11-Dec-12 12:48 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.170118.1 | Last Updated 23 Jan 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid