Return to Snippet

Revision: 21972
at December 27, 2009 09:35 by Zufolek


Initial Code
#include <windows.h>

int main(){
 MessageBox(
  0,
  "Hello world!",
  "Zufolek rules the universe",
  MB_ICONASTERISK | MB_OK
 );
 return 0;
}

Initial URL

                                

Initial Description
For MinGW or Cygwin, compile wth -mwindows option to get rid of console.

Try replacing the MB_OK with MB_OKCANCEL and see what happens.

Initial Title
Simple Windoze Program

Initial Tags

                                

Initial Language
C