Click here to Skip to main content
16,017,100 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Select a Folder and get fullPath from all files it contains Pin
Immunity1815-May-07 9:28
Immunity1815-May-07 9:28 
QuestionLaunch another app within an app Pin
Jerry Burns15-May-07 7:03
Jerry Burns15-May-07 7:03 
AnswerRe: Launch another app within an app Pin
Rajesh R Subramanian15-May-07 7:08
professionalRajesh R Subramanian15-May-07 7:08 
AnswerRe: Launch another app within an app Pin
Hans Dietrich15-May-07 7:11
mentorHans Dietrich15-May-07 7:11 
GeneralRe: Launch another app within an app Pin
Jerry Burns15-May-07 7:39
Jerry Burns15-May-07 7:39 
GeneralRe: Launch another app within an app Pin
Hans Dietrich15-May-07 8:29
mentorHans Dietrich15-May-07 8:29 
QuestionRe: Launch another app within an app Pin
Hamid_RT15-May-07 8:29
Hamid_RT15-May-07 8:29 
AnswerRe: Launch another app within an app Pin
dharani15-May-07 18:18
dharani15-May-07 18:18 
hello
There are two things here.

WinExec : with this you can launch another process (Myapp.exe) . But you have no programatic control over the exe after you launch it .

CreateProcess : with this you can have the process handle of Myapp.exe so that later you can kill it .
Sample is here
STARTUPINFO si;
PROCESS_INFORMATION pi;
ZeroMemory( &si, sizeof(si) );
si.cb = sizeof(si);
ZeroMemory( &pi, sizeof(pi) );

if( !CreateProcess( NULL, // No module name (use command line).
"myapp.exe" // Command line.
NULL, // Process handle not inheritable.
NULL, // Thread handle not inheritable.
FALSE, // Set handle inheritance to FALSE.
0, // No creation flags.
NULL, // Use parent's environment block.
NULL, // Use parent's starting directory.
&si, // Pointer to STARTUPINFO structure.
&pi) ) // Pointer to PROCESS_INFORMATION structure.
{
AfxMessageBox("can not start process");
}




redindian

GeneralRe: Launch another app within an app Pin
Hamid_RT15-May-07 19:14
Hamid_RT15-May-07 19:14 
QuestionFont problem Pin
david bagaturia15-May-07 6:36
david bagaturia15-May-07 6:36 
AnswerRe: Font problem Pin
Rajesh R Subramanian15-May-07 6:55
professionalRajesh R Subramanian15-May-07 6:55 
AnswerRe: Font problem Pin
Hans Dietrich15-May-07 7:13
mentorHans Dietrich15-May-07 7:13 
QuestionRe: Font problem Pin
Hamid_RT15-May-07 8:28
Hamid_RT15-May-07 8:28 
AnswerRe: Font problem Pin
david bagaturia15-May-07 19:44
david bagaturia15-May-07 19:44 
GeneralRe: Font problem Pin
Hamid_RT15-May-07 20:25
Hamid_RT15-May-07 20:25 
GeneralRe: Font problem Pin
david bagaturia15-May-07 20:41
david bagaturia15-May-07 20:41 
GeneralRe: Font problem Pin
Hamid_RT15-May-07 20:56
Hamid_RT15-May-07 20:56 
GeneralRe: Font problem Pin
david bagaturia15-May-07 21:04
david bagaturia15-May-07 21:04 
GeneralRe: Font problem Pin
Hamid_RT15-May-07 21:23
Hamid_RT15-May-07 21:23 
GeneralRe: Font problem Pin
david bagaturia15-May-07 21:51
david bagaturia15-May-07 21:51 
GeneralRe: Font problem Pin
Hamid_RT15-May-07 21:56
Hamid_RT15-May-07 21:56 
QuestionPrinter Issue [modified] Pin
San246815-May-07 5:45
San246815-May-07 5:45 
AnswerRe: Printer Issue Pin
Nelek15-May-07 21:42
protectorNelek15-May-07 21:42 
QuestionInterfacing between MATLAB and C++ Pin
1vick15-May-07 5:34
1vick15-May-07 5:34 
AnswerRe: Interfacing between MATLAB and C++ Pin
led mike15-May-07 5:54
led mike15-May-07 5:54 

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.