Click here to Skip to main content
15,902,896 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Creating and deleting a temp file Pin
Soundman32.226-Feb-09 23:23
Soundman32.226-Feb-09 23:23 
QuestionGetShortPathName Pin
tom groezer26-Feb-09 21:46
tom groezer26-Feb-09 21:46 
QuestionHow to open Cmd prompt Pin
john563226-Feb-09 20:25
john563226-Feb-09 20:25 
AnswerRe: How to open Cmd prompt Pin
«_Superman_»26-Feb-09 20:47
professional«_Superman_»26-Feb-09 20:47 
AnswerRe: How to open Cmd prompt Pin
Nibu babu thomas26-Feb-09 21:07
Nibu babu thomas26-Feb-09 21:07 
Questionhandle to a window created by createprocess Pin
vijaywithu26-Feb-09 19:53
vijaywithu26-Feb-09 19:53 
AnswerRe: handle to a window created by createprocess Pin
Slavisa Dojcinovic26-Feb-09 21:27
Slavisa Dojcinovic26-Feb-09 21:27 
GeneralRe: handle to a window created by createprocess Pin
vijaywithu26-Feb-09 21:36
vijaywithu26-Feb-09 21:36 
Thanks Slavisa,
I tried it. but it does nothing i donno why..
Could u please help me further with my code below:
(I want to close the console that created within 3 seconds but it is not moving into that if part (bold))

CreateProcess(_T("\\windows\\iesample.exe"),imFullPath, NULL, NULL, FALSE, CREATE_NEW_CONSOLE, NULL, NULL, NULL, &processInfo1);
Sleep(3000);
EnumWindows(&EnumProc,processInfo1.dwProcessId);



BOOL CALLBACK EnumProc(HWND hwnd, LPARAM param)
{

DWORD id = GetWindowThreadProcessId(hwnd, NULL);
if (id == (DWORD)param)
{
DestroyWindow(hwnd);
return false;
}
return true;
}
GeneralRe: handle to a window created by createprocess Pin
«_Superman_»26-Feb-09 21:44
professional«_Superman_»26-Feb-09 21:44 
GeneralRe: handle to a window created by createprocess Pin
vijaywithu26-Feb-09 22:07
vijaywithu26-Feb-09 22:07 
GeneralRe: handle to a window created by createprocess Pin
Slavisa Dojcinovic26-Feb-09 21:48
Slavisa Dojcinovic26-Feb-09 21:48 
AnswerRe: handle to a window created by createprocess Pin
CPallini26-Feb-09 21:48
mveCPallini26-Feb-09 21:48 
GeneralRe: handle to a window created by createprocess Pin
vijaywithu26-Feb-09 22:08
vijaywithu26-Feb-09 22:08 
GeneralRe: handle to a window created by createprocess Pin
Slavisa Dojcinovic26-Feb-09 23:26
Slavisa Dojcinovic26-Feb-09 23:26 
GeneralRe: handle to a window created by createprocess Pin
vijaywithu26-Feb-09 23:46
vijaywithu26-Feb-09 23:46 
GeneralRe: handle to a window created by createprocess Pin
CPallini26-Feb-09 23:47
mveCPallini26-Feb-09 23:47 
GeneralRe: handle to a window created by createprocess Pin
vijaywithu26-Feb-09 23:53
vijaywithu26-Feb-09 23:53 
GeneralRe: handle to a window created by createprocess Pin
CPallini26-Feb-09 23:57
mveCPallini26-Feb-09 23:57 
GeneralRe: handle to a window created by createprocess Pin
vijaywithu27-Feb-09 0:06
vijaywithu27-Feb-09 0:06 
GeneralRe: handle to a window created by createprocess Pin
CPallini27-Feb-09 0:25
mveCPallini27-Feb-09 0:25 
QuestionCString to const char* conversion? Pin
sam_psycho26-Feb-09 19:38
sam_psycho26-Feb-09 19:38 
AnswerRe: CString to const char* conversion? Pin
Nishad S26-Feb-09 20:02
Nishad S26-Feb-09 20:02 
AnswerRe: CString to const char* conversion? Pin
john563226-Feb-09 20:27
john563226-Feb-09 20:27 
QuestionRe: CString to const char* conversion? Pin
CPallini26-Feb-09 22:04
mveCPallini26-Feb-09 22:04 
Questiondebugging Pin
Sumanta Banerjee26-Feb-09 19:20
Sumanta Banerjee26-Feb-09 19:20 

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.