Author Topic: using resources in C::B and using RadASM  (Read 7206 times)

Offline MoonKid

  • Almost regular
  • **
  • Posts: 180
using resources in C::B and using RadASM
« 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?

Offline polygon7

  • Multiple posting newcomer
  • *
  • Posts: 104
    • Home site
Re: using resources in C::B and using RadASM
« Reply #1 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)
best regards,
p7
 Free open source UML modeling tool: ArgoUML

Offline PsYhLo

  • Almost regular
  • **
  • Posts: 157
Re: using resources in C::B and using RadASM
« Reply #2 on: June 04, 2006, 02:51:14 pm »
use this when you compile your .exe
http://www.angusj.com/resourcehacker/
open the .exe and add your icon

or use this
http://forums.codeblocks.org/index.php?topic=2191.0

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT
Re: using resources in C::B and using RadASM
« Reply #3 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.

Offline Vampyre_Dark

  • Regular
  • ***
  • Posts: 255
  • Hello!
    • Somewhere Over The Rainbow...
Re: using resources in C::B and using RadASM
« Reply #4 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.
C::B Wishlist
~BOYCOTT THE EVIL YELLOW BOXES~

Offline Baco

  • Single posting newcomer
  • *
  • Posts: 9
Re: using resources in C::B and using RadASM
« Reply #5 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.