Thread: DevC++ Resource Scripting

  1. #1
    Registered User cfrost's Avatar
    Join Date
    Apr 2004
    Posts
    119

    DevC++ Resource Scripting

    I have been coding the .rc for Borland C when I compile same .rc on DevC++ it gives me phrase Error in .rc...
    So what are the KEYWORDS and RULEZ of DEVC++ resource compiler , I tried there web site but they tell nothing about it
    Software is like sex it is good when it is free

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    >>phrase Error in .rc<<

    Help us to help you - if you have a specific problem then please quote the exact error message and the line that error message refers to.

    *************

    MSDN: Resource definition statements.

    Differences are minor but generally:
    Code:
    #include <windows.h>
    #if !defined IDC_STATIC
    #define IDC_STATIC -1
    #endif
    #include "your_resource_defines.h"
    in your resource script for MinGW.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  3. #3
    Registered User cfrost's Avatar
    Join Date
    Apr 2004
    Posts
    119
    I think every body knows "prase error" compiler just tells me line number and tells me prase error in xxx.rc where xxx is name of your .rc file for example:

    Code:
    IDD_ABOUT DIALOG DISCARDABLE  0, 0, 239, 66
    STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
    CAPTION "My About Box"
    FONT 8, "MS Sans Serif"
    BEGIN
        DEFPUSHBUTTON   "&OK",IDOK,174,18,50,14
        PUSHBUTTON      "&Cancel",IDCANCEL,174,35,50,14
        GROUPBOX        "About this program...",IDC_STATIC,7,7,225,52
        CTEXT           "An example program showing how to use Dialog Boxes\r\n\r\nby theForger",
                        IDC_STATIC,16,18,144,33
    END
    the DevC++ compiler gives me error hilighting line
    Code:
    STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
    and say prase error thats all

    By the way by dev C++ ver is 4.9.9.1
    Software is like sex it is good when it is free

  4. #4
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    >>I think every body knows "prase error"<<

    Nobody recognises "prase" errors, not even windres.

    My previous suggestion, when applied, will fix that 'prase' error.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  5. #5
    Registered User
    Join Date
    Sep 2004
    Posts
    719
    Quote Originally Posted by Ken Fitlike
    >>I think every body knows "prase error"<<

    Nobody recognises "prase" errors, not even windres.

    My previous suggestion, when applied, will fix that 'prase' error.

    what are you talking about?!?!?....i get praise errors all the time...l
    ex:
    Error: line 7 - "Good job! Seven lines in and i'm already confused! "
    i seem to have GCC 3.3.4
    But how do i start it?
    I dont have a menu for it or anything.

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. CreateProcess with Resource of executable, not the Filename
    By Ktulu in forum Windows Programming
    Replies: 4
    Last Post: 11-04-2006, 01:07 AM
  3. Generic Resource_Manager WIP with lots TODO
    By Shamino in forum C++ Programming
    Replies: 19
    Last Post: 02-01-2006, 01:55 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