-
Linking Program
I am working on a program for my job. It is starting off very simple right now but I will take it a whole lot further as time goes on. I have a very simple question right now though cause I can't seem to figure it out and I am sure that it is just something I am overlooking.
My question is how do I open another program from the program I am making. I know how to modify text files and make scripts and all that. I have the path to the exe files, I just am not sure how to make it so that I can tell it to open "Program A.exe".
In case anybody needs to know, I am using Visual C++ .Net.
Thanks.
-
Well you could do system("path and name of exe"); or shellexecute()(I think :) )
-
I will have to give it a try, thanks!
-
WinExec or CreateProcess if you're doing a windows app.
The reason would be that system() causes a console window to pop up in a windows app. If you're already a console app, system() is better.
-
That is good to know, the first version of my app is console. But all later versions after it will be Windows.
Thanks for the info!