02-10-2005, 10:59 AM
As the title says, can anyone explain a simple "how-to" steps?
thanks in advance.
thanks in advance.
= inc(¢)
How to include a resource file into FB program?
|
02-10-2005, 10:59 AM
As the title says, can anyone explain a simple "how-to" steps?
thanks in advance.
= inc(¢)
02-10-2005, 11:41 AM
Compile a resource file in DevCPP and add the OBJ when you compile in FB. :*)
02-10-2005, 11:42 AM
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.
ew FreeBASIC forums: http://www.freebasic.net/forum/index.php
|
« Next Oldest | Next Newest »
|