Author Topic: Problem with resources  (Read 3360 times)

Sh4wn

  • Guest
Problem with resources
« on: June 28, 2006, 10:21:39 pm »
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..

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Problem with resources
« Reply #1 on: June 28, 2006, 10:23:33 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.
« Last Edit: June 28, 2006, 10:25:39 pm by MortenMacFly »
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Sh4wn

  • Guest
Re: Problem with resources
« Reply #2 on: June 28, 2006, 10:36:41 pm »
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