I have two visual studio projects. I want to do something like
for(int i=0;i<10;i++)
{
Run_Project1(i) // Pass i as argument to project 1.
Run_Project2(i)
// do something with results
}
How can I possibly do this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well first of all you need to compile the projects and get the resulting executable files, you can’t simply “run” source code.
The next thing to do is to call the exe files, the easy way to do that in win32 is with system. So you would run something like
As for how you get the results, well you’d need to specify what those would be.