Posted By

Zufolek on 12/27/09


Tagged

messagebox


Versions (?)

Simple Windoze Program


 / Published in: C
 

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

Try replacing the MBOK with MBOKCANCEL and see what happens.

  1. #include <windows.h>
  2.  
  3. int main(){
  4. MessageBox(
  5. 0,
  6. "Hello world!",
  7. "Zufolek rules the universe",
  8. MB_ICONASTERISK | MB_OK
  9. );
  10. return 0;
  11. }

Report this snippet  

You need to login to post a comment.