Simple Windoze Program


/ Published in: C
Save to your folder(s)

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.


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.