Alright, I have the book OpenGL Game Programming, and in Chapter 2(Windows with OpenGL), there is a Hello World program for windows. Well, my compiler(MS-VC++) said cant execute cl.exe or something. On my other computer, it executes just fine if i use the dsw file, but when i try to compile the source on both computers it gives me that error. Here is the code:
#include <windows.h>
#define WIN32_LEAN_AND_MEAN
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
{
MessageBox(NULL, "\tHello, world!", "My First Windows Application", 0);
return 0;
}
Anybody here know why I may be having this problem?