View Single Post
Re: Running an application
Old
  (#5)
koraX
Member
 
koraX's Avatar
 
Status: Offline
Posts: 145
Join Date: Jan 2004
Location: Slovak Republic
Default Re: Running an application - 04-12-2004

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);


kXBot
koraX's utils
- see my homepage for other projects (OpenGL CSG Editor, FAT16 Sim, NNetwork Sim, ...)

Last edited by koraX; 04-12-2004 at 13:56..
  
Reply With Quote