How to include a resource file into FB program? - Printable Version +- Qbasicnews.com (http://qbasicnews.com/newforum) +-- Forum: Qbasic "like" compilers/interpreters (http://qbasicnews.com/newforum/forum-5.html) +--- Forum: FB Discussion & Programming Help (http://qbasicnews.com/newforum/forum-15.html) +--- Thread: How to include a resource file into FB program? (/thread-5990.html) |
How to include a resource file into FB program? - zydon - 02-10-2005 As the title says, can anyone explain a simple "how-to" steps? thanks in advance. How to include a resource file into FB program? - relsoft - 02-10-2005 Compile a resource file in DevCPP and add the OBJ when you compile in FB. :*) How to include a resource file into FB program? - v3cz0r - 02-10-2005 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. How to include a resource file into FB program? - zydon - 02-10-2005 Thanks again. goRC did helps. |