Click here to Skip to main content
15,890,512 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Named Pipes Pin
Bram van Kampen20-Nov-08 21:17
Bram van Kampen20-Nov-08 21:17 
GeneralRe: Named Pipes Pin
Bram van Kampen11-Dec-08 16:33
Bram van Kampen11-Dec-08 16:33 
QuestionExport data to Outlook Pin
DanYELL18-Nov-08 15:04
DanYELL18-Nov-08 15:04 
AnswerRe: Export data to Outlook Pin
David Crow19-Nov-08 3:34
David Crow19-Nov-08 3:34 
GeneralRe: Export data to Outlook Pin
DanYELL19-Nov-08 9:10
DanYELL19-Nov-08 9:10 
GeneralRe: Export data to Outlook Pin
David Crow19-Nov-08 9:21
David Crow19-Nov-08 9:21 
Question(C++/win32) How to call an external console-mode exe, without showing the console window, and optionally capturing the output? Pin
Petruza18-Nov-08 14:37
Petruza18-Nov-08 14:37 
AnswerRe: (C++/win32) How to call an external console-mode exe, without showing the console window, and optionally capturing the output? Pin
Force Code18-Nov-08 15:55
Force Code18-Nov-08 15:55 
SECURITY_ATTRIBUTES sa = {sizeof(sa),NULL,TRUE};
HANDLE hProcOut = CreateFile("proc.out",GENERIC_READ|GENERIC_WRITE,
   FILE_SHARE_READ,&sa,CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, 0);
.
.
.
    STARTUPINFO   si;
    ZeroMemory((PVOID)&si,sizeof(si));
    si.cb = sizeof(si);
    si.dwFlags = STARTF_USESHOWWINDOW | STARTF_USESTDHANDLES;
    si.wShowWindow = SW_HIDE;
    si.hStdOutput = hProcOut;
    si.hStdError = hProcOut;

    PROCESS_INFORMATION  pi;

    if (CreateProcess(0,cmd,0,0,TRUE,
        CREATE_DEFAULT_ERROR_MODE,0,default_dir,&si,&pi)) {

      DWORD  ExitCode;
      float elpsed_crnt=0;

      while (1) {

        Sleep(250);

        GetExitCodeProcess(pi.hProcess,&ExitCode);
        if (bCancel || (ExitCode != STILL_ACTIVE)) {
          if (bCancel) TerminateProcess(pi.hProcess,0);
          CloseHandle(pi.hProcess);
          CloseHandle(pi.hThread);
          break;
        }

      }
    }

GeneralRe: (C++/win32) How to call an external console-mode exe, without showing the console window, and optionally capturing the output? Pin
Force Code18-Nov-08 16:04
Force Code18-Nov-08 16:04 
QuestionHow can I use CFrameWndEx somewhere else? Pin
lingol18-Nov-08 8:09
lingol18-Nov-08 8:09 
QuestionRe: How can I use CFrameWndEx somewhere else? Pin
led mike18-Nov-08 8:26
led mike18-Nov-08 8:26 
AnswerRe: How can I use CFrameWndEx somewhere else? [modified] Pin
lingol18-Nov-08 13:59
lingol18-Nov-08 13:59 
GeneralRe: How can I use CFrameWndEx somewhere else? Pin
led mike19-Nov-08 4:59
led mike19-Nov-08 4:59 
GeneralRe: How can I use CFrameWndEx somewhere else? Pin
lingol19-Nov-08 7:30
lingol19-Nov-08 7:30 
GeneralRe: How can I use CFrameWndEx somewhere else? Pin
led mike19-Nov-08 8:05
led mike19-Nov-08 8:05 
Questionskinning applications Pin
Force Code18-Nov-08 4:32
Force Code18-Nov-08 4:32 
QuestionRe: skinning applications Pin
led mike18-Nov-08 4:50
led mike18-Nov-08 4:50 
AnswerRe: skinning applications Pin
Force Code18-Nov-08 5:03
Force Code18-Nov-08 5:03 
GeneralRe: skinning applications Pin
led mike18-Nov-08 5:46
led mike18-Nov-08 5:46 
AnswerRe: skinning applications Pin
Iain Clarke, Warrior Programmer18-Nov-08 5:24
Iain Clarke, Warrior Programmer18-Nov-08 5:24 
GeneralRe: skinning applications Pin
led mike18-Nov-08 5:44
led mike18-Nov-08 5:44 
AnswerRe: skinning applications Pin
Force Code18-Nov-08 6:11
Force Code18-Nov-08 6:11 
AnswerRe: skinning applications Pin
Maximilien18-Nov-08 7:02
Maximilien18-Nov-08 7:02 
GeneralRe: skinning applications Pin
Force Code18-Nov-08 7:34
Force Code18-Nov-08 7:34 
GeneralRe: skinning applications Pin
led mike18-Nov-08 7:43
led mike18-Nov-08 7:43 

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.