I am runnig an exe file and thru that i want to compile another .cpp file which is not related to it in any way! How i am going to do this? Using Visual C++ and Windows XP!
I am runnig an exe file and thru that i want to compile another .cpp file which is not related to it in any way! How i am going to do this? Using Visual C++ and Windows XP!
*blinks*
If I understand what you're asking, you want to know how to write a compiler?
I'm getting the same notion as Lithorien. If you want to be able to compile a cpp file and then add that compiled code to the executable that is already running, Windows won't allow you to do that......easily.
If it's a seperate program you want to compile and you don't want to write your own compiler, you could use ShellExecuteEx or CreateProcess to run cl.exe and link.exe on the source file and generated objects to produce a new exe
No. My program does unit testing. It is given the address the "to be tested file" and it tests it by compiling it and running it on values the user has given to test with! I hope i am more clearer now.
So how to Compile that "to be tested file" from my running exe?
Thanks Quantum1024! I got it.