First Windows pgm.


// A simple message box - the new hello world
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <windowsx.h>

// ************** main ****************
int WINAPI WinMain(HINSTANCE hinstance, HINSTANCE hprevinstance,
                                    LPSTR lpcmdline, int ncmdshow)
{ // call message box api
   MessageBox(NULL, "What's up world!", "My First Windows Program",MB_OK);
   // exit program
   return(0);
}