Calling Exterior .exe Files

Started by
4 comments, last by necreia 20 years, 6 months ago
I wish to now port into my level editor the ability to execute a file by selecting a file command. Is there a MFC class that wraps all that up into something easy like "ExecuteFile(&lpszPath)" or something along those lines? Just want to open a file assigned to a pre-defined path string
Advertisement
Look up WinExec in MSDN

(It''s depreciated, but it does what you want it to)
Primitive.. yet totally what I was looking for. Thanks a lot!
i would say "ShellExecute" or "ShellExecuteEx", since they allow you to run programs, or use the context-menu options on non-executable files (i.e. printing a file, or opening it in a browser).
--- krez ([email="krez_AT_optonline_DOT_net"]krez_AT_optonline_DOT_net[/email])
quote:Original post by NorthWoodsman
Look up WinExec in MSDN

(It''s depreciated

It costs less now?
--AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.[Project site] [IRC channel] [Blog]
Haha.

This topic is closed to new replies.

Advertisement