cannot run win32 console program in vc++ standard
Hey all,
I am new in VC++.. I have been trying to follow the book that I am reading and it tells me to compile the program HelloWorld2 using Win 32 Console (I am using VS 2005 Standard). I followed the setting that the book said and tried to build it in the manner the book instructed, debugging it in the command prompt. I did and it said:
Code:
"The system cannot find the path specified."
I don't know what that meant since I tried to run it from the right directory based on the book's instructions.
I also tried to run it from the VC++ editor but it gave me this error:
Code:
fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?
By the way, here is the code:
Code:
// HelloWorld2
// Prints hello world on the screen
// Unmanaged
#include "stdafx.h"
#include <iostream.h>
int _tmain(int argc, _TCHAR* argv[])
{
//Write to the screen
cout << "Hello World\n";
return 0;
}
Any inputs?
Thanks..