Announcement

Collapse
No announcement yet.

MSGBOX function

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • MSGBOX function

    I'm looking to put a yes/no message box -- here is what I am using:

    lResult& = MSGBOX("Do you want a printout",%MB_YESNO, "test")

    Even the example from the help won't work:

    lResult& = MSGBOX("Overwrite registry file?", %MB_OKCANCEL OR %MB_DEFBUTTON2 OR %MB_TASKMODAL, "Critical Warning")

    I have come to the conclusion that I need to download one of the equates from the WIN32API.INC file.

    Am I correct? Can you suggest which file should be downloaded and used? Or am way off target?

    Thanks.
    Steve

  • #2
    MSGBOX function

    #include ... duh sorry about that.

    Comment


    • #3
      You need to #INCLUDE "WIN32API.INC", which is supplied with the compilers. Alternatively you could copy/paste the necessary equates from WIN32API.INC into your program, but you may as well just #INCLUDE the whole thing 'cause you never know what you'll need next.

      -- Eric
      Last edited by Eric Pearson; 28 Dec 2007, 03:48 PM.
      "Not my circus, not my monkeys."

      Comment


      • #4
        Don't feel bad Steve, its the end of the week, and after the holidays. Everyone is bound to have a "Brain Cramp" from time to time.
        Engineer's Motto: If it aint broke take it apart and fix it

        "If at 1st you don't succeed... call it version 1.0"

        "Half of Programming is coding"....."The other 90% is DEBUGGING"

        "Document my code????" .... "WHYYY??? do you think they call it CODE? "

        Comment

        Working...
        X