Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: MoonKid on June 04, 2006, 12:44:44 pm

Title: using resources in C::B and using RadASM
Post by: MoonKid on June 04, 2006, 12:44:44 pm
I want to use resources in C::B. I know I have to build them with an extern editor.

I found http://www.radasm.com/. I understand nothing! ;)
That is something with assambler. There is nothing about resources.
In the application itself is nothing about resources.

How can I build and add resources with icons in it to a C::B project?
Title: Re: using resources in C::B and using RadASM
Post by: polygon7 on June 04, 2006, 02:21:00 pm
Hi,
look at: http://www.radasm.com/projects/projects.html
 ->"ResEd version 1.1.3.0 (05-28-2006) Simple resource editor and RAResEd with source. resed.zip (426K)"
and for example:
http://forums.codeblocks.org/index.php?topic=2200.0 (search for "resources" in C::B forum)
Title: Re: using resources in C::B and using RadASM
Post by: PsYhLo on June 04, 2006, 02:51:14 pm
use this when you compile your .exe
http://www.angusj.com/resourcehacker/ (http://www.angusj.com/resourcehacker/)
open the .exe and add your icon

or use this
http://forums.codeblocks.org/index.php?topic=2191.0 (http://forums.codeblocks.org/index.php?topic=2191.0)
Title: Re: using resources in C::B and using RadASM
Post by: Ceniza on June 04, 2006, 08:28:45 pm
Just search in the forums or in google how to create resource files and add icons to it. Create a new resource file with Code::Blocks, add the lines you need and build it.

If all you need is an icon for the program, something like this will do:
Code: cpp
APP_ICON  ICON  "path/to/your/icon.ico"

APP_ICON is just a name I made up.
Title: Re: using resources in C::B and using RadASM
Post by: Vampyre_Dark on June 05, 2006, 04:20:14 am
I linked you to a free program called ResEd that would create the resource file for you. All you have to do is use it to spit out an .rc file, and add it to your project. Also, using the program options to 'generate c style includes' to get an .h file with all your resources define. You can use this program to add icons and manifests or whatever you want.
Title: Re: using resources in C::B and using RadASM
Post by: Baco on July 11, 2007, 10:31:40 pm
Vampyre_Dark i had a try of resed 1.1.4.0 and i hadnt found any option to generate c styles includes.
I wanted to modify an existing .rc resource file with identifiers in an .h header file, but using resed i had many things messed up.
If someone else want to modify an existing .rc resource file with identifiers in an .h header file i can tell him to leave alone resed.