I am a programmer with experience in VB6, VB.Net and GAMBAS (Linux BASIC) and i have decided to learn C++. I have done a considerable amount already but need a bit of help. Is there any way to load an executable file using c++ code. I want to call the program executable on command, like after the user has typed 'Y' or 'y'. I know about switch and case and i can open text and binary files in c++, but what i am looking for is the code to load an executable.
To seem less confusing, the code in VB6 is...
RetVal = Shell("C:\where the file is\appname.exe", 1)
This would load up the application and the main form would not exit (since it wasnt told too). I want the same functionality in my library program where it would be useful to load an executable from within the code. Is this possible using C++ or do i need to use another method ie a console script like a batch file or bash script.
P.S. sorry for the VB code above, but best way to try and explain!!