This is something that I need to do in my program, that's a little though for me to define in a few words for Google, I couldn't find any useful results.
The thing is this, I have a program that creates a bunch of code files(.cpp and .h, in native format), that are ready and valid and just need to be compiled together, of course I can just take them after being created and putting them in a project in VS and compiling manually, but I'm looking for a faster method, a way to compile them from within the program that created them, peraphs calling the compiler from within it to do the work.
The way I tried to do that was use the File::Copy() method, to copy the cmd and vcvarsall.bat(I'm using VS to compile) to the same folder as the files that I want to compile, and then tried using Process:: Start(), but that didn't quite work, I couldn't find a way to make it start vcvarsall.bat. And I'm not even sure that this is at all what I SHOULD be doing.
Any input from more experienced programmers for this please?