News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Resource (.rc) Inclusion question

Started by jakes, February 06, 2017, 05:29:34 AM

Previous topic - Next topic

jakes

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.

oBFusCATed

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!]

jakes

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?