Original Post
i just windows game programming guru book and i cant figure out how to do my first windows app \. the book syas to create a new win32.exe and include demo2.cpp from the cdrom, but i dont know how to do that. then it says to compile and link the program somehow, but i dont understand how to link the program. heres the codes for my c++source file.
// DEMO2_2.CPP - a simple message box
#define WIN32_LEAN_AND_MEAN
#include
#include
// main entry point for all windows programs
int WINAPI WinMain(HINSTANCE hinstance,
HINSTANCE hprevinstance,
LPSTR lpcmdline,
int ncmdshow)
{
// call message box api with NULL for parent window handle
MessageBox(NULL, "THERE CAN BE ONLY ONE!!!",
"MY FIRST WINDOWS PROGRAM",
MB_OK | MB_ICONEXCLAMATION);
// exit program
return(0);
} // end WinMain
please can someone walk me throught how to do this thanks