Click here to Skip to main content
15,925,309 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem using static solidbrush in GDI+ Pin
Stick^9-Oct-06 12:50
Stick^9-Oct-06 12:50 
GeneralRe: Problem using static solidbrush in GDI+ Pin
Mark Salsbery9-Oct-06 12:56
Mark Salsbery9-Oct-06 12:56 
QuestionProblem with output redirect Pin
eusto9-Oct-06 11:13
eusto9-Oct-06 11:13 
AnswerRe: Problem with output redirect Pin
James R. Twine9-Oct-06 11:29
James R. Twine9-Oct-06 11:29 
GeneralRe: Problem with output redirect Pin
eusto9-Oct-06 12:06
eusto9-Oct-06 12:06 
AnswerRe: Problem with output redirect Pin
Mark Salsbery9-Oct-06 12:33
Mark Salsbery9-Oct-06 12:33 
GeneralRe: Problem with output redirect Pin
eusto9-Oct-06 22:30
eusto9-Oct-06 22:30 
AnswerRe: Problem with output redirect Pin
Naveen9-Oct-06 17:43
Naveen9-Oct-06 17:43 
if u want to redirect the out put u can use any of the following ways...

SHELLEXECUTEINFO stInfo = {0};<br />
stInfo.fMask = SEE_MASK_NOCLOSEPROCESS;<br />
stInfo.cbSize = sizeof(SHELLEXECUTEINFO);<br />
stInfo.lpVerb = _T("open");<br />
stInfo.lpFile = _T("cmd");<br />
stInfo.lpParameters = _T("/c ping www.google.com > c:\\result.txt");<br />
stInfo.nShow = SW_SHOW;<br />
ShellExecuteEx( &stInfo );<br />
WaitForSingleObject(stInfo.hProcess, INFINITE);


or

STARTUPINFO StartupInfo;<br />
PROCESS_INFORMATION ProcessInfo;<br />
ULONG rc;<br />
memset(&StartupInfo, 0, sizeof(StartupInfo));<br />
StartupInfo.cb = sizeof(STARTUPINFO);<br />
if (!CreateProcess( _T("c:\\windows\\system32\\cmd.exe"),<br />
    _T("/c ping www.google.com > c:\\result.txt"),<br />
    NULL,<br />
    NULL,<br />
    TRUE,<br />
    NULL, <br />
    NULL, <br />
    NULL,<br />
    &StartupInfo,<br />
    &ProcessInfo ))<br />
{<br />
    printf("Failed with %d\n",GetLastError());        <br />
}<br />
WaitForSingleObject(ProcessInfo.hProcess, INFINITE);<br />
CloseHandle(ProcessInfo.hThread);<br />
CloseHandle(ProcessInfo.hProcess);


nave

QuestionWell like I said... Pin
Learn2LikeIt9-Oct-06 10:59
Learn2LikeIt9-Oct-06 10:59 
AnswerRe: Well like I said... Pin
led mike9-Oct-06 11:06
led mike9-Oct-06 11:06 
GeneralRe: Well like I said... Pin
Nibu babu thomas9-Oct-06 17:43
Nibu babu thomas9-Oct-06 17:43 
AnswerRe: Well like I said... Pin
Galatei10-Oct-06 2:50
Galatei10-Oct-06 2:50 
QuestionFunctions Pin
Learn2LikeIt9-Oct-06 10:54
Learn2LikeIt9-Oct-06 10:54 
AnswerRe: Functions Pin
Hamid_RT9-Oct-06 18:32
Hamid_RT9-Oct-06 18:32 
AnswerRe: Functions Pin
Tim Craig9-Oct-06 20:51
Tim Craig9-Oct-06 20:51 
Questiontimers in a console app Pin
eusto9-Oct-06 10:02
eusto9-Oct-06 10:02 
AnswerRe: timers in a console app Pin
led mike9-Oct-06 10:25
led mike9-Oct-06 10:25 
GeneralRe: timers in a console app Pin
eusto9-Oct-06 10:34
eusto9-Oct-06 10:34 
AnswerRe: timers in a console app Pin
Zac Howland9-Oct-06 10:35
Zac Howland9-Oct-06 10:35 
GeneralRe: timers in a console app Pin
led mike9-Oct-06 11:36
led mike9-Oct-06 11:36 
GeneralRe: timers in a console app Pin
Zac Howland10-Oct-06 4:37
Zac Howland10-Oct-06 4:37 
AnswerRe: timers in a console app Pin
Stephen Hewitt9-Oct-06 13:38
Stephen Hewitt9-Oct-06 13:38 
QuestionOpenCV image displaying problem Pin
nalintharanga9-Oct-06 6:28
nalintharanga9-Oct-06 6:28 
AnswerRe: OpenCV image displaying problem Pin
Christian Graus9-Oct-06 10:01
protectorChristian Graus9-Oct-06 10:01 
QuestionGetProcAddress and extern &quot;C&quot; Pin
Sydes9-Oct-06 6:26
Sydes9-Oct-06 6:26 

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.