Click here to Skip to main content
15,910,083 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: HTML syntax highlighting concepts Pin
Phil Hamer10-Sep-03 9:20
Phil Hamer10-Sep-03 9:20 
GeneralPaiting inside a control Pin
JensB10-Sep-03 5:24
JensB10-Sep-03 5:24 
QuestionCListCtrl, how to iterate through all items? Pin
Anonymous10-Sep-03 5:21
Anonymous10-Sep-03 5:21 
AnswerRe: CListCtrl, how to iterate through all items? Pin
vcplusplus10-Sep-03 5:35
vcplusplus10-Sep-03 5:35 
AnswerRe: CListCtrl, how to iterate through all items? Pin
David Crow10-Sep-03 6:16
David Crow10-Sep-03 6:16 
GeneralRe: CListCtrl, how to iterate through all items? Pin
Anonymous10-Sep-03 6:40
Anonymous10-Sep-03 6:40 
GeneralXP Serial communication Pin
Arthur Westerman10-Sep-03 4:54
Arthur Westerman10-Sep-03 4:54 
GeneralcreateProcess questions Pin
ns10-Sep-03 4:46
ns10-Sep-03 4:46 
1. The foll code is what I will use.
STARTUPINFO si = { sizeof(STARTUPINFO) };   PROCESS_INFORMATION pi;     // Create the process   if (!::CreateProcess(NULL, "your.exe", NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi)) {       AfxMessageBox("Error starting the process!");       return; }   // Wait till it ends    ::WaitForSingleObject(pi.hProcess, INFINITE);   // Clean up ::CloseHandle(pi.hProcess); ::CloseHandle(pi.hThread);


Q1. If the exe launched is a windows app that needs some stuff done by the user, and then it is exited, will the WaitForSIngleObject will come back only after this launched windows app terminates?

Q2. If the launched process awaits the user, but he decides to press some other button on the main program (not the launched program) will the button respond? Or will the main app be unresponsive until the user has dealt with the launched app and exited it?

Appreciate your help,
ns
GeneralRe: createProcess questions Pin
Magnus Westin10-Sep-03 4:58
Magnus Westin10-Sep-03 4:58 
Generalerror Pin
ranjjj10-Sep-03 4:24
ranjjj10-Sep-03 4:24 
GeneralRe: error Pin
David Crow10-Sep-03 6:22
David Crow10-Sep-03 6:22 
GeneralWeird problem with FindFirstChangeNotification Pin
Magnus Westin10-Sep-03 3:16
Magnus Westin10-Sep-03 3:16 
GeneralHHeelp Pin
Member 42425910-Sep-03 3:13
Member 42425910-Sep-03 3:13 
GeneralRe: HHeelp Pin
valikac10-Sep-03 9:24
valikac10-Sep-03 9:24 
GeneralRe: HHeelp Pin
Member 42425910-Sep-03 19:12
Member 42425910-Sep-03 19:12 
GeneralRe: HHeelp Pin
valikac11-Sep-03 11:41
valikac11-Sep-03 11:41 
GeneralRe: HHeelp Pin
Phil Hamer10-Sep-03 9:25
Phil Hamer10-Sep-03 9:25 
GeneralRe: HHeelp Pin
Member 42425910-Sep-03 19:09
Member 42425910-Sep-03 19:09 
QuestionShape file source code ?? Pin
David Chamberlain10-Sep-03 2:31
David Chamberlain10-Sep-03 2:31 
AnswerRe: Shape file source code ?? Pin
JWood10-Sep-03 4:15
JWood10-Sep-03 4:15 
GeneralICM Problem Pin
CodeBrain10-Sep-03 2:14
CodeBrain10-Sep-03 2:14 
GeneralCScrollView Help Pin
VanHlebar10-Sep-03 1:26
VanHlebar10-Sep-03 1:26 
GeneralRe: CScrollView Help Pin
Ryan Binns10-Sep-03 3:13
Ryan Binns10-Sep-03 3:13 
GeneralRe: CScrollView Help Pin
VanHlebar10-Sep-03 8:32
VanHlebar10-Sep-03 8:32 
GeneralCreating a Modal Dialog before calling DoModal() Pin
ohadp10-Sep-03 0:39
ohadp10-Sep-03 0:39 

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.