Author Topic: Resource (.rc) Inclusion question  (Read 2411 times)

Offline jakes

  • Single posting newcomer
  • *
  • Posts: 3
Resource (.rc) Inclusion question
« on: February 06, 2017, 05:29:34 am »
Probably a remedial question, but I'm new to the IDE.

Using Code::Blocks on a Win8 machine.
I downloaded the code for an app from SourceForge that was originally intended for Visual Studio++ and I've been tweaking it to run under gcc.  Compile runs ok until I get to the menu handling code that expects to have the ID_FILE_NEW, ID_FILE_OPEN, ID_FILE_CLOSE, etc. defined.

The resource.rs file is included in the project and seems to be correctly formed, but it's like it isn't getting built or included prior to the compile on the menu.cpp file.  I'm sure it is a project config issue, but I've been going in circles for hours...

...any assistance is appreciated.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Resource (.rc) Inclusion question
« Reply #1 on: February 06, 2017, 10:22:56 am »
Is the rc file part of the project? Do you see the resource compiler's execution in the log?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline jakes

  • Single posting newcomer
  • *
  • Posts: 3
Re: Resource (.rc) Inclusion question
« Reply #2 on: February 07, 2017, 12:55:57 am »
Yes the .rc file is included under the resources folder in Project

The error is: "error: 'ID_FILE_NEW' was not declared in this scope"
followed by errors for all the other menu ID's in the case statement.

I don't see the .rc results in the build log. 

Maybe it is not finding the right windows.h file?