How to get message boxes up

This is a discussion on How to get message boxes up within the C++ Programming forums, part of the General Programming Boards category; To get message boxes to be in your program, include windows.h. Then put: Code: MessageBox(NULL, "This is what will show ...

  1. #1
    fuh
    fuh is offline
    Attack hamster fuh's Avatar
    Join Date
    Dec 2002
    Posts
    176

    How to get message boxes up

    To get message boxes to be in your program, include windows.h. Then put:
    Code:
    MessageBox(NULL, "This is what will show up", "This is the caption(the thing in the upper left hand corner).", MB_OK/*Puts an OK box at the bottom*/);
    CREDIT:Hunter2
    Stupid things pop singers say

    "I get to go to lots of overseas places, like Canada."
    - Britney Spears

    "I love what you've done with the place!"
    -Jessica Simpson upon meeting the Secretary of Interior during tour of the White House

  2. #2
    Registered User
    Join Date
    Sep 2002
    Posts
    272
    Thank you very much. I was just about to post that question. You must be telepathic.
    Joe

  3. #3
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    Did somebody delete the first post or something?

  4. #4
    Funniest man in this seat minesweeper's Avatar
    Join Date
    Mar 2002
    Posts
    801
    says the thread was started by fuh, so i guess not

  5. #5
    Registered User
    Join Date
    Sep 2002
    Posts
    272
    >Did somebody delete the first post or something?,

    No, fuh dreamt it last night. Hunter2 has be appearing in his/her/it's dreams and passing on wisdom. Which is appreciated. Long may it continue.
    Joe

  6. #6
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    I think he's gone crazy. He just all of a sudden gets the urge to post how to make a message, which almost everybody already knows how to do.

  7. #7
    Funniest man in this seat minesweeper's Avatar
    Join Date
    Mar 2002
    Posts
    801
    Just think, if this carries on, he will one day have produced the entire content of "Programming Windows" by Charles Petzold in random cprog posts.

  8. #8
    fuh
    fuh is offline
    Attack hamster fuh's Avatar
    Join Date
    Dec 2002
    Posts
    176
    This is aimed for the newbie programmers.
    Stupid things pop singers say

    "I get to go to lots of overseas places, like Canada."
    - Britney Spears

    "I love what you've done with the place!"
    -Jessica Simpson upon meeting the Secretary of Interior during tour of the White House

  9. #9
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,786
    Originally posted by fuh
    This is aimed for the newbie programmers.
    When you learn a new trick, it doesnt automatically mean you should teach it to eveyone else......it just makes you look silly

    Please stop.

    CLOSED

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Strange string behavior
    By jcafaro10 in forum C Programming
    Replies: 2
    Last Post: 04-07-2009, 07:38 PM
  2. Message class ** Need help befor 12am tonight**
    By TransformedBG in forum C++ Programming
    Replies: 1
    Last Post: 11-29-2006, 10:03 PM
  3. Making a script language?
    By Blackroot in forum Game Programming
    Replies: 10
    Last Post: 02-16-2006, 01:22 AM
  4. Dialog Box Problems
    By Morgul in forum Windows Programming
    Replies: 21
    Last Post: 05-31-2005, 05:48 PM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21