Thread: resource

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    18

    resource

    im using dev-c++ and am trying to make a resource using the following code:
    IDD_TOOLBAR DIALOGEX 0, 0, 98, 52
    STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION
    EXSTYLE WS_EX_TOOLWINDOW
    CAPTION "My Dialog Toolbar"
    FONT 8, "MS Sans Serif"
    BEGIN
    PUSHBUTTON "&Press This Button",IDC_PRESS,7,7,84,14
    PUSHBUTTON "&Or This One",IDC_OTHER,7,31,84,14
    END

    however when i click build resource it says parse error, line 2
    is there something wrong?

    thanks

  2. #2
    Pygmy Monkey ErionD's Avatar
    Join Date
    Feb 2002
    Posts
    408
    include windows.h at the top of your resource

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Sorting out a resource manager
    By psychopath in forum Game Programming
    Replies: 1
    Last Post: 11-10-2008, 07:12 PM
  2. unmanaged resource
    By George2 in forum C++ Programming
    Replies: 2
    Last Post: 01-03-2008, 04:23 AM
  3. CreateProcess with Resource of executable, not the Filename
    By Ktulu in forum Windows Programming
    Replies: 4
    Last Post: 11-04-2006, 01:07 AM
  4. resource problem/question
    By stallion in forum Windows Programming
    Replies: 4
    Last Post: 01-29-2003, 02:08 PM
  5. Serial Communications in C
    By ExDigit in forum Windows Programming
    Replies: 7
    Last Post: 01-09-2002, 10:52 AM