Hello, I am just starting to learn C++ and Decided to change from using Dev-C++ to Visual C++ 2008 express. but, there seems to be a problem.After compiling a few programs and showing off my new skills to my friend over MSN he tells me that he cant run my compiled exes! He gets the error message
"This application has failed to start because the applications configuration is incorrect. Reinstalling the program may fix the problem"
I was like "O.K, might be my code", I have just started learning about classes/interfaces ect so i decided to create a very simple program and compile it with VC++
#include <iostream>
using namespace std;
int main(void)
{
cout<<"Does this work?";
system("PAUSE"); //I know...bad me, i'm lazy
return 0;
}
But no, he still gets that very same error message. So, I compiled the same code above in Dev-c++, not only did this increase the exes size by like 452KB, it also WORKED on his system.
My compiled exes with VC++ are about 8KB, I am not sure if I am compiling the correctly because this seems very small, compared to my 500kb exes from Dev C++.
The way I am compiling them is by clicking the green arrow (But, the mouse tip says its called "Start Debugging") I really dont think that the way im making my exes is actually the correct way, can anybody please help me and explian how to compile the code correctly with Visual C++ 08 express.
Sorry for the wall of text.