Author Topic: Syntax Error?  (Read 4254 times)

Offline The Techo

  • Single posting newcomer
  • *
  • Posts: 6
Syntax Error?
« on: August 01, 2009, 11:42:51 am »
 am trying to create the following dialog box(This is my .rc code):

IDD_Main DIALOG DISCARDABLE  0, 0, 500, 66
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "My About Box"
FONT 8, "MS Sans Serif"
BEGIN

    GROUPBOX        "Player",IDC_STATIC,7,7,225,52
    PUSHBUTTON      "A",IDA,16,18,50,14
    PUSHBUTTON      "B",IDB,16,35,50,14
    PUSHBUTTON      "C",IDC,15,52,50,14
    GROUPBOX        "Menu",IDC_STATIC,240,7,225,52
    PUSHBUTTON      "Restart",IDRESTART,500,7,50,14
    PUSHBUTTON      "Quit",IDQUIT,500,18,50,14
    PUSHBUTTON      "About",IDABOUT,500,52,50,14
END
But it keep on giving me the following errror:
windres.exe: C:\\DOCUME~1\\ADMINI~1\\Desktop\\CTests\\scroll\\resource.rc:83: syntax error

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Syntax Error?
« Reply #1 on: August 01, 2009, 01:03:20 pm »
You should read some documentation about .rc-files, needed includes, defines and so on.

Your question is not related to C::B in any way, and therefore violates our forum rules.

Topic locked!

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Syntax Error?
« Reply #2 on: August 01, 2009, 03:47:19 pm »
I never did this before, and hopefully will never again think it's needed: I answer a pm in a post I locked myself.

You locked my topic on syntax error but it is a problem with the compiler because as sonn as i change a name the error occours.

If the support is this bad then i will switch to another IDE

I hear borland or vc++ are good

That's the cause why I locked the thread:

C::B has nothing to do with the compiler, neither the C/C++-compiler nor the resource-compiler.
C::B is an IDE, that can be used as frontend to several compilers.

C::B related questions are welcome.

Your problem is a syntax-eror in the .rc-file and has nothing to do with C::B.
It took me about twenty minutes to make your .rc-file free of syntax-errors, I never used a .rc-file before (at least not directly), because I normally do not use windows.
And I gave you two hints, that may lead you to the solution.

So I think it is not fair to blame the forum or the C::B support.

Here comes a quote from on of the sticky posts in this forum:
2. Compiler errors are NOT Code::Blocks errors. Usually, C++ newcomers tend to confuse the Editor/IDE (Code::Blocks) with the Compiler (MINGW / GCC). You may see some errors in the compiler output because you missed to do something right in your code. But that's not Code::Blocks troubleshooting, that's C++ troubleshooting and does not belong in here. If your program doesn't compile, READ THE C++ MANUAL.
« Last Edit: August 01, 2009, 03:50:10 pm by jens »