On 2007-09-19 16:19, Pawel_Iks wrote:
> I have some program in the executable form (for example notepad.exe in
> windows) and I want to run it in C++ code. How to do it?
You cannot. Or to be exact, your really should not, the only way to do
it in standard C++ is to use system(), but using system() is generally a
bad idea. To run another program you need to use code specific to your
platform, on both Windows and POSIX systems (UNIX and LINUX) there is a
family of functions with names starting with exec which can be used. For
more information please consult a group discussing programming on your
system:
http://www.parashift.com/c++-faq-lit...t.html#faq-5.9
--
Erik Wikström