DialogBox(...) error

This is a discussion on DialogBox(...) error within the Windows Programming forums, part of the Platform Specific Boards category; DialogBox(GetModuleHandle(NULL), MAKEINTRESOURCE(IDD_ABOUT), hwnd, AboutDlgProc); when i compile i only get this error: 87 ...\Main.cpp `AboutDlgProc' undeclared (first use this function) ...

  1. #1
    Linux Forever
    Join Date
    Oct 2002
    Posts
    373

    DialogBox(...) error

    DialogBox(GetModuleHandle(NULL), MAKEINTRESOURCE(IDD_ABOUT), hwnd, AboutDlgProc);

    when i compile i only get this error:

    87 ...\Main.cpp `AboutDlgProc' undeclared (first use this function)

    Dev C++, only error

    Hoe can I fix this? Thanks in advance.
    This war, like the next war, is a war to end war.

  2. #2
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,138
    Declare AboutDlgProc.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  3. #3
    Linux Forever
    Join Date
    Oct 2002
    Posts
    373
    Just for the record, what exactly is it supposed to be? (I might have forggoten to mention this, but I'm helping a friend out, and I know nothing about Win32 programming)
    This war, like the next war, is a war to end war.

  4. #4
    Registered User
    Join Date
    Aug 2005
    Posts
    96

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. An error is driving me nuts!
    By ulillillia in forum C Programming
    Replies: 5
    Last Post: 04-04-2009, 09:15 PM
  3. Making C DLL using MSVC++ 2005
    By chico1st in forum C Programming
    Replies: 26
    Last Post: 05-28-2008, 01:17 PM
  4. Connecting to a mysql server and querying problem
    By Diod in forum C++ Programming
    Replies: 8
    Last Post: 02-13-2006, 09:33 AM
  5. Couple C questions :)
    By Divx in forum C Programming
    Replies: 5
    Last Post: 01-28-2003, 12:10 AM

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