User forums > Using Code::Blocks
Problem with resources
(1/1)
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:
--- Quote from: Sh4wn on June 28, 2006, 10:21:39 pm ---What's the problem?
--- End quote ---
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.
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
Navigation
[0] Message Index
Go to full version