News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Problem with resources

Started by Sh4wn, June 28, 2006, 10:21:39 PM

Previous topic - Next topic

Sh4wn

Another problem with resources :D

I've got 4 resource files, 1 for general things (menu's, icons), 1 for an about dialog, 1 for a string table, and 1 that includes all other 3 resource files.

With compiling, I get no errors, no warnings. But when the application starts. I get a messagebox that he couldn't load a string from the string table resource. (Custom exception was thrown, en I catched, the reason for the messagebox)

Error code 1813.

What's the problem?
With Dev-C++ it worked..

MortenMacFly

#1
Quote from: Sh4wn on June 28, 2006, 10:21:39 PM
What's the problem?
Did you add the resource files (*.rc) to your project? Otherwise they won't be compiled and linked automatically... How should C::B know about your resource files?!
With regards, Morten.

Edit: BTW: You forgot to add at least: What C::B version, what OS, what Compiler you are using. My statement applies for Windows, C::B nightly with MinGW. If you have a different config, please clarify.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Sh4wn

Thanks for the quick reply :)

But I've found it already. :)

The problem was:
the 3 'normal' resource file were also compiled. But when I exluded them from compile and linking (so only the resource file which includes all other resource files will be compiled) it worked! :D