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
>your answer is mysterious ... why I should not do it?
Not sure what he means either. Maybe he's saying that
you'd be better using a platform specific way (like
createprocess() on windows or whatever it's called.)
If you just want to launch the exe, then
std::system("notepad.exe");
should do it as long as notepad.exe is in your path
or you specify the path.
The thing is, that once you load whatever you want, you'll
likely want to hook it in some way and that's a different
story.