Thread: dialog box

  1. #1
    carry on JaWiB's Avatar
    Join Date
    Feb 2003
    Seattle, WA

    dialog box

    Im just learning about windows applications and i was trying to create a dialog box, but i keep getting an error: "127 winapp2.cpp
    parse error before `{'"
    (using Dev C++ 4)
    Heres the code i'm using to create the dialog box:
    BOOL CALLBACK AboutDlgProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam)
            case WM_INITDIALOG:
            return TRUE;
            case WM_COMMAND:
                    case IDOK:
                        EndDialog(hwnd, IDOK);
                    case IDCANCEL:
                        EndDialog(hwnd, IDCANCEL);
                return FALSE;
        return TRUE;
    It might be a problem with another part of my code but if someone can see a problem with this let me know.

    EDIT: Found the problem...forgot a '}' in winproc
    Last edited by JaWiB; 02-21-2003 at 10:52 PM.
    "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."

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 9
    Last Post: 02-13-2008, 02:59 PM
  2. Parent of a BrowseForFolder dialog box
    By @nthony in forum Windows Programming
    Replies: 4
    Last Post: 01-08-2007, 02:54 PM
  3. Display Dialog Box Then Execute
    By stickman in forum C++ Programming
    Replies: 17
    Last Post: 05-10-2006, 11:02 AM
  4. New Theme
    By XSquared in forum A Brief History of
    Replies: 160
    Last Post: 04-01-2004, 08:00 PM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM