I am wondering how can i open a .exe file with my c++ program. Could some one give me the source code?
I am wondering how can i open a .exe file with my c++ program. Could some one give me the source code?
just out of curiosity, how would I do something like this in non-windows operating systems?
Same.
I suggest reading this for other options under Linux.
c - Difference between "system" and "exec" in Linux? - Stack Overflow
Tim S.
"...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson
And a Windows specific alternative:
ShellExecute function (Windows)
How I need a drink, alcoholic in nature, after the heavy lectures involving quantum mechanics.
Of course it all depends on what you mean by opening an exe. One can open an exe for reading in the same way one opens a data file. A hes editor would do this, for example.
Generally the terms such as "launch", "start" or "run" are used to indicate that you want the program to execute.
My homepage
Advice: Take only as directed - If symptoms persist, please see your debugger
Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"