Thread: pop up

  1. #1
    Registered User
    Join Date
    Mar 2006
    Posts
    17

    pop up

    how do i create a pop up? say for example a pop up saying "access denied"

  2. #2
    ... arjunajay's Avatar
    Join Date
    May 2005
    Posts
    203
    I don't think you can do that in console programs (I may Be Wrong).
    In win API ypu'd use some thing like MessageBox();
    Try posting in Windows forum.

  3. #3
    carry on JaWiB's Avatar
    Join Date
    Feb 2003
    Location
    Seattle, WA
    Posts
    1,972
    If you're using windows then it's relatively simple:
    Code:
    #define WIN32_LEAN_AND_MEAN //keep out unecessary includes
    #include <windows.h>
    
    int main()
    {
      MessageBox(NULL,"Access is denied","Error",MB_OK);
    }
    You might also want to see the corresponding msdn page
    "Think not but that I know these things; or think
    I know them not: not therefore am I short
    Of knowing what I ought."
    -John Milton, Paradise Regained (1671)

    "Work hard and it might happen."
    -XSquared

  4. #4
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    type javascript:alert("Boo!"); into your address bar and hit enter.
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. push n pop
    By salmansalman in forum C++ Programming
    Replies: 3
    Last Post: 05-27-2008, 09:41 AM
  2. Queues
    By ramayana in forum C Programming
    Replies: 22
    Last Post: 01-01-2006, 02:08 AM
  3. Stack using push and pop
    By silicon in forum C++ Programming
    Replies: 5
    Last Post: 11-03-2003, 04:54 PM
  4. pop up menu problem
    By bigtamscot in forum Windows Programming
    Replies: 5
    Last Post: 06-10-2003, 01:46 AM
  5. pop function
    By Troll_King in forum C Programming
    Replies: 12
    Last Post: 10-15-2001, 04:45 AM