Results 1 to 3 of 3

Thread: How I make program show dialog box and close?

  1. #1

    Thread Starter
    Junior Member Daler Mehndi's Avatar
    Join Date
    Nov 2001
    Posts
    31

    How I make program show dialog box and close?

    I want make program...open up, it show dialog box, then close? Do nothing but show dialog. How Daler do that?
    PUNJABI!!!!!

    Daler Mehndi
    Eastern Dance Star and VB-World KKK (Kitty Kat Klub)
    http://www.daler.com/

    Daler say "Alo!"!

  2. #2
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772
    Code:
    #include <windows.h>
    
    int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
    {
      MessageBox(NULL, "Hello", "test", MB_OK);
      return 0;
    }

  3. #3

    Thread Starter
    Junior Member Daler Mehndi's Avatar
    Join Date
    Nov 2001
    Posts
    31
    Thank very much!
    PUNJABI!!!!!

    Daler Mehndi
    Eastern Dance Star and VB-World KKK (Kitty Kat Klub)
    http://www.daler.com/

    Daler say "Alo!"!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width