WINAPI Programming/Lesson Two
Appearance
This project displays a message box...
#include<windows.h>
int _stdcall WinMain (HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmd, int nShow)
{
MessageBox (NULL, TEXT("Hello"), TEXT("Hello, Windows!"), MB_OK);
return 0;
}
Note: You may need to manually include the user32.lib for proper linkage...