Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to include a resource file into FB program?
#1
As the title says, can anyone explain a simple "how-to" steps?

thanks in advance.
= inc(¢) Big Grin
Reply
#2
Compile a resource file in DevCPP and add the OBJ when you compile in FB. :*)
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply
#3
If the resource is a simple bmp/icon, use goRC (http://www.jorgon.freeserve.co.uk/Gorcjorg.zip) or windres (from mingw package) to compile the .rc script to a .obj file, then just include that .obj at the fbc's list as -a objname.obj (if the extension is .o you don't have to use -a to add the object).

To add an icon to the exe, the script would be just:

MYLOGO ICON mylogo.ico

Now to include menus and dialogs, the windows.h is needed, so mingw or some C compiler for Windows must be installed and the resource compiler must to pointed to the include path.
Reply
#4
Thanks again. goRC did helps.
= inc(¢) Big Grin
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)