Quote:
Originally Posted by Rifleman
gosh , I nearly fainted looking at the function's agruement
 , how about some example ? Like launching hl ?
|
Instead of almighty CreateProcess, use ShellExecute.
example of opening .rtf document :
Code:
ShellExecute(theApp.m_pMainWnd->GetSafeHwnd(),NULL,"document.rtf",NULL,"C:\\foo",SW_SHOW);