/* * This source code is in the PUBLIC DOMAIN and has NO WARRANTY. * * Colin Peters , April 15, 1997. */ #include #include int STDCALL WinMain (HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmd, int nShow) { char text[80]; printf ("Enter message box text:"); fgets(text, 80, stdin); MessageBox (NULL, text, "Test", MB_OK); printf ("\nHello after message box.\n"); return 0; }