Click here to Skip to main content
15,911,789 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Combining Bitmaps (version 2) Pin
PJ Arends27-Jul-06 5:23
professionalPJ Arends27-Jul-06 5:23 
GeneralRe: Combining Bitmaps (version 2) [modified] Pin
#realJSOP27-Jul-06 5:46
professional#realJSOP27-Jul-06 5:46 
GeneralRe: Combining Bitmaps (version 2) Pin
#realJSOP27-Jul-06 6:52
professional#realJSOP27-Jul-06 6:52 
GeneralRe: Combining Bitmaps (version 2) Pin
#realJSOP27-Jul-06 7:04
professional#realJSOP27-Jul-06 7:04 
GeneralRe: Combining Bitmaps (version 2) Pin
PJ Arends27-Jul-06 8:45
professionalPJ Arends27-Jul-06 8:45 
GeneralRe: Combining Bitmaps (version 2) Pin
PJ Arends27-Jul-06 9:00
professionalPJ Arends27-Jul-06 9:00 
GeneralRe: Combining Bitmaps (version 2) Pin
PJ Arends27-Jul-06 9:06
professionalPJ Arends27-Jul-06 9:06 
Questionredirecting output from console? Pin
9ine27-Jul-06 3:43
9ine27-Jul-06 3:43 
I use some console application running it from inside VC project and I want to redirect its output to file

bool runprocess(wchar_t *cmnd)
{
SECURITY_ATTRIBUTES sattr;
memset(&sattr,0,sizeof(sattr));
sattr.nLength = sizeof(sattr);
sattr.bInheritHandle = true;

STARTUPINFO sInfo;
memset(&sInfo,0,sizeof(sInfo));
PROCESS_INFORMATION pInfo;
memset(&pInfo,0,sizeof(pInfo));
sInfo.cb = sizeof(sInfo);
sInfo.dwFlags = STARTF_USESTDHANDLES;

bool res = CreateProcess(0,cmnd,0,0,true,NORMAL_PRIORITY_CLASS|CREATE_NO_WINDOW,0,0,&sInfo,&pInfo);
if(res)
WaitForSingleObject(pInfo.hProcess, INFINITE);

return res;
}

runprocess(L"consoleapp.exe >output");

But the file output is not created though consoleapp worked normally?
How to get its output without reading hStdInput, hStdOutput from STARTUPINFO structure?

9ine

AnswerRe: redirecting output from console? Pin
Gary R. Wheeler29-Jul-06 4:01
Gary R. Wheeler29-Jul-06 4:01 
Questionconvert string to byte [modified] Pin
_tasleem27-Jul-06 3:34
_tasleem27-Jul-06 3:34 
AnswerRe: convert string to byte Pin
toxcct27-Jul-06 3:54
toxcct27-Jul-06 3:54 
GeneralRe: convert string to byte Pin
_tasleem27-Jul-06 4:24
_tasleem27-Jul-06 4:24 
GeneralRe: convert string to byte Pin
PJ Arends27-Jul-06 9:42
professionalPJ Arends27-Jul-06 9:42 
Questionmake the mouse pointer to hourglass Pin
Max++27-Jul-06 3:18
Max++27-Jul-06 3:18 
AnswerRe: make the mouse pointer to hourglass Pin
Chris Losinger27-Jul-06 3:26
professionalChris Losinger27-Jul-06 3:26 
AnswerRe: make the mouse pointer to hourglass Pin
David Crow27-Jul-06 3:33
David Crow27-Jul-06 3:33 
AnswerRe: make the mouse pointer to hourglass Pin
Hamid_RT27-Jul-06 3:45
Hamid_RT27-Jul-06 3:45 
QuestionDate Time picker Pin
tanarnelinistit27-Jul-06 3:14
tanarnelinistit27-Jul-06 3:14 
AnswerRe: Date Time picker Pin
David Crow27-Jul-06 3:16
David Crow27-Jul-06 3:16 
QuestionTesting Critical Sections Pin
softwaremonkey27-Jul-06 2:37
softwaremonkey27-Jul-06 2:37 
AnswerRe: Testing Critical Sections Pin
Cedric Moonen27-Jul-06 3:08
Cedric Moonen27-Jul-06 3:08 
GeneralRe: Testing Critical Sections [modified] Pin
softwaremonkey27-Jul-06 3:28
softwaremonkey27-Jul-06 3:28 
GeneralRe: Testing Critical Sections Pin
Cedric Moonen27-Jul-06 3:42
Cedric Moonen27-Jul-06 3:42 
GeneralRe: Testing Critical Sections Pin
softwaremonkey27-Jul-06 4:10
softwaremonkey27-Jul-06 4:10 
GeneralRe: Testing Critical Sections Pin
peterchen27-Jul-06 4:18
peterchen27-Jul-06 4:18 

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.