Qbasicnews.com
October 18, 2019, 10:15:32 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to include a resource file into FB program?  (Read 4005 times)
zydon
Member
*
Posts: 69



« on: February 10, 2005, 02:59:26 AM »

As the title says, can anyone explain a simple "how-to" steps?

thanks in advance.
Logged

 = inc() Cheesy
relsoft
*/-\*
*****
Posts: 3927



WWW
« Reply #1 on: February 10, 2005, 03:41:24 AM »

Compile a resource file in DevCPP and add the OBJ when you compile in FB. :*)
Logged

y smiley is 24 bit.


Genso's Junkyard:
http://rel.betterwebber.com/
v3cz0r
I hold this place together
*****
Posts: 924



WWW
« Reply #2 on: February 10, 2005, 03:42:24 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.
Logged

zydon
Member
*
Posts: 69



« Reply #3 on: February 10, 2005, 04:28:35 AM »

Thanks again. goRC did helps.
Logged

 = inc() Cheesy
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!