Click here to Skip to main content
15,891,597 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Subclassing CEdit, OnChar Pin
includeh1013-Jan-06 17:56
includeh1013-Jan-06 17:56 
GeneralRe: Subclassing CEdit, OnChar Pin
FarPointer14-Jan-06 0:21
FarPointer14-Jan-06 0:21 
GeneralRe: Subclassing CEdit, OnChar Pin
Lilith.C14-Jan-06 3:54
Lilith.C14-Jan-06 3:54 
QuestionPrevent endtask the application Pin
leenmie13-Jan-06 16:09
leenmie13-Jan-06 16:09 
AnswerRe: Prevent endtask the application Pin
Stephen Hewitt13-Jan-06 21:45
Stephen Hewitt13-Jan-06 21:45 
GeneralRe: Prevent endtask the application Pin
John Simon14-Jan-06 13:47
John Simon14-Jan-06 13:47 
QuestionStarting another process Pin
Polymorpher13-Jan-06 14:40
Polymorpher13-Jan-06 14:40 
AnswerRe: Starting another process Pin
Stephen Hewitt13-Jan-06 15:10
Stephen Hewitt13-Jan-06 15:10 
You could use the "CreateProcess" API. Here is what a typical call would look like:
-----------------------------------------------------------------------------------

STARTUPINFO si = {0};
si.cb = sizeof(si);
PROCESS_INFORMATION pi;
BOOL bOk = CreateProcess(
"C:\\Windows\\System32\\Notepad.exe", // LPCTSTR lpApplicationName
NULL, // LPTSTR lpCommandLine,
NULL, // LPSECURITY_ATTRIBUTES lpProcessAttributes,
NULL, // LPSECURITY_ATTRIBUTES lpThreadAttributes,
FALSE, // BOOL bInheritHandles
0, // DWORD dwCreationFlags
NULL, // LPVOID lpEnvironment
NULL, // LPCTSTR lpCurrentDirectory
&si, // LPSTARTUPINFO lpStartupInfo
&pi // LPPROCESS_INFORMATION lpProcessInformation
);
if ( bOk )
{
pi.CloseHandle(pi.hProcess);
pi.CloseHandle(pi.hThread);
}

There are other options like "ShellExecute" and "ShellExecuteEx" and CRT functions such as "_spawn".


Steve

QuestionHow to call Mircosoft Word from with a program with the ".doc" name being loaded already Pin
Larry Mills Sr13-Jan-06 14:32
Larry Mills Sr13-Jan-06 14:32 
AnswerRe: How to call Mircosoft Word from with a program with the ".doc" name being loaded already Pin
KellyR13-Jan-06 14:45
KellyR13-Jan-06 14:45 
AnswerRe: How to call Mircosoft Word from with a program with the ".doc" name being loaded already Pin
FarPointer14-Jan-06 0:04
FarPointer14-Jan-06 0:04 
QuestionHow to send a shortcut from a program to the desktop Pin
Larry Mills Sr13-Jan-06 14:26
Larry Mills Sr13-Jan-06 14:26 
AnswerRe: How to send a shortcut from a program to the desktop Pin
KellyR13-Jan-06 14:51
KellyR13-Jan-06 14:51 
QuestionAccessing MFC classes in VB Pin
mohanrajh13-Jan-06 14:14
mohanrajh13-Jan-06 14:14 
AnswerRe: Accessing MFC classes in VB Pin
includeh1013-Jan-06 18:02
includeh1013-Jan-06 18:02 
GeneralRe: Accessing MFC classes in VB Pin
mohanrajh14-Jan-06 0:13
mohanrajh14-Jan-06 0:13 
QuestionVS2005 Dialog Editor -> Add Variable - Control Id field is blank Pin
Yak7713-Jan-06 12:47
Yak7713-Jan-06 12:47 
QuestionQuestion when writing an Assert function Pin
Nacho Chip13-Jan-06 12:30
Nacho Chip13-Jan-06 12:30 
AnswerRe: Question when writing an Assert function Pin
Stephen Hewitt13-Jan-06 18:58
Stephen Hewitt13-Jan-06 18:58 
AnswerRe: Question when writing an Assert function Pin
Gary R. Wheeler15-Jan-06 5:24
Gary R. Wheeler15-Jan-06 5:24 
GeneralRe: Question when writing an Assert function Pin
Harold Bamford16-Jan-06 11:52
Harold Bamford16-Jan-06 11:52 
GeneralRe: Question when writing an Assert function Pin
Gary R. Wheeler17-Jan-06 16:13
Gary R. Wheeler17-Jan-06 16:13 
GeneralRe: Question when writing an Assert function Pin
Harold Bamford19-Jan-06 4:40
Harold Bamford19-Jan-06 4:40 
QuestionLAN API Pin
Allad13-Jan-06 11:52
Allad13-Jan-06 11:52 
AnswerRe: LAN API Pin
zubair_ahmed13-Jan-06 19:46
zubair_ahmed13-Jan-06 19:46 

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.