Ok so I am using Microsoft Visual C++ 2008 express edition to compile my programs. I have used this for a while now and i want to make a program that will open another executable file. I have done this successfully with system(), however whenever I put spaces in the file path, it gives me an error
Eventually I will want to have the program execute the file and then take a string that this program produces and put that in a variable. I have searched around online and i believe that the system() command is not what i need for this job (would win32 be better to use?). What can i use and what header files does it need? (Also if the program can be run without showing that would be great, so it doesn't bother the user as much)
Thanks in advance.