Pelles C forum

Pelles C => General discussions => Topic started by: zenonpro on November 03, 2006, 09:53:45 AM

Title: Resource files
Post by: zenonpro on November 03, 2006, 09:53:45 AM
Hi, has anybody ever tried to add an .rc file to a project comming from SiComponents Resource builder.  When I do this, the resource shows up in text format and when compiling I get lots of errors.  Is it possible to link with the compiled .res file or is there a way to import this .rc file properly into the resource editor of pelles C

Thanks
Pascal
Title: Resource files
Post by: frankie on November 03, 2006, 10:01:39 AM
You can use the .res file to link your project.
The problem is that some resource compiler doesn't use the standard M$ resource language.
To convert between the formats you can use a resource decompiler that extract the sources from the .res or the .exe (i.e. resourcehacker).
Title: resource
Post by: zenonpro on November 06, 2006, 04:33:44 PM
OK guys, figured it out.  I could open the compiled .res version of the resource and all dialogs are displayed in a nice treeview.  Then I saved this as an rc source file.  Added the rc file to the project and all compiles well now.

Thanks,
Pascal.
Title: Re: Resource files
Post by: noman9607 on January 03, 2008, 05:33:30 AM
It has been over a year but this post saved me some trouble. Resource Builder is great for resource files, just be sure to import the binary .res file and not the .rc file. The trouble for me was the comtrl.h file. Resource builder handles pascal, c and microsoft format rc files.