Resources

This is a discussion on Resources within the Windows Programming forums, part of the Platform Specific Boards category; Ok this just refuses to compile with mingw's windres. Just comes up with a parse error on the line with ...

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

    Resources

    Ok this just refuses to compile with mingw's windres. Just comes up with a parse error on the line with "STYLE DS_MODALFRAME. . . . ".
    I've looked at it over and over again but still can't find out where
    I've gone wrong.

    resource file:
    Code:
    CHANGE_CIRC_NAME DIALOG DISCARDABLE 0, 0, 239, 66
    STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
    CAPTION "Enter Circuit Name:"
    FONT 8, "MS Sans Serif"
    BEGIN
      EDITTEXT                 IDC_CCN_NAME,   174, 18, 50,  14
      DEFPUSHBUTTON "&OK",     IDC_CCN_NAME,   174, 35, 50,  14
      PUSHBUTTON    "&Cancel", IDC_CCN_CANCEL, 7,   7,  225, 52
    END
    header file:
    Code:
    #define CHANGE_CIRC_NAME 6000
    #define IDC_CCN_NAME     6001
    #define IDC_CCN_OK       6002
    #define IDC_CCN_CANCEL   6003

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Looks fine to me, Shtarker. If you want, attach the resource header and script and i'd be happy to take a closer look/test.

  3. #3
    Registered User
    Join Date
    Jan 2002
    Posts
    381
    That is the only bit of the file thats giving me trouble.
    But here's the rest of it.
    Last edited by shtarker; 03-23-2002 at 04:44 PM.

  4. #4
    Registered User
    Join Date
    Nov 2001
    Posts
    162
    You didn't include windows.h in your resource file

  5. #5
    Registered User
    Join Date
    Jan 2002
    Posts
    381
    THANKYOU!!!!!
    I knew it would be something stuipd and blaringly obvious.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Resources in Dev C++
    By JJFMJR in forum Windows Programming
    Replies: 7
    Last Post: 08-27-2007, 05:14 AM
  2. measuring system resources used by a function
    By Aran in forum C Programming
    Replies: 1
    Last Post: 03-13-2006, 04:35 PM
  3. accessing a DLL's resources...
    By dug in forum Windows Programming
    Replies: 9
    Last Post: 12-13-2005, 04:04 AM
  4. Storing resources into a single file
    By LuckY in forum Game Programming
    Replies: 20
    Last Post: 08-14-2004, 11:28 PM
  5. Adding resources
    By nima_ranjbar in forum Windows Programming
    Replies: 0
    Last Post: 04-14-2002, 11:36 PM

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