FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Need .RES File to include in my project !!!
Posts: 336
Joined: Mon Dec 07, 2009 02:49 PM
Need .RES File to include in my project !!!
Posted: Mon May 27, 2019 01:29 PM

Dear All ,

I am not expert to create .RES files , I am requesting .RES files which contain button BITMAP and GET control Styles to include in my project. Thanks in advance...!

Thanks
Shridhar

Thanks

Shridhar

FWH 24.04, BCC 7 32 bit, MariaDB
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Re: Need .RES File to include in my project !!!
Posted: Mon May 27, 2019 02:26 PM

In FWH\DLL there is a SCREEN32.DLL where you can put yours dlg,bitmap, etc and save as RES.
Please read screens.txt to more informations.

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Need .RES File to include in my project !!!
Posted: Mon May 27, 2019 02:50 PM
Shridhar
This is sample for RC file
Rc file is compiled with your compiler C, and converted to RES file
Look at type 10, used for images other than .bmp

Code (fw): Select all Collapse
#include <windows.h>
#include <commctrl.h>

#ifndef __64__
  1 24 "WindowsXP.Manifest" 
#else
  1 24 "WindowsXP.Manifest64"
#endif 

1                    ICON           ".\images\magic.ico"

quit01               BITMAP         ".\images\quit.bmp"
setup01              BITMAP         ".\images\setup.bmp"
table                10             ".\images\database.bmp"
tableg               10             ".\images\databaseg.bmp"
tablec               10             ".\images\databasec.bmp"
product01            BITMAP         ".\images\index2.bmp"
inicial01            10             ".\images\magic.bmp"
tablev               10             ".\images\databasev.bmp"
tablen               10             ".\images\databasen.bmp"
list1                BITMAP         ".\images\goto.bmp"
list2                BITMAP         ".\images\combobox.bmp"
select               BITMAP         ".\images\gotoline.bmp"
compare              BITMAP         ".\images\tiled2.bmp"
drop01               BITMAP         ".\images\delete.bmp"
select01             10             ".\images\task.bmp"
alls01               BITMAP         ".\images\run.bmp"
view01               BITMAP         ".\images\view.bmp"
cancel01             BITMAP         ".\images\no.bmp"
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Need .RES File to include in my project !!!
Posted: Mon May 27, 2019 10:06 PM
If You use Borland .. here is what I use ..

Copy all my .rc into one single .rc
Use Borlands brcc32 compiler .. see syntax below .. this takes the monolithic VehW32.rc and creates the VehW32.Res file which I add to the link list .... If there are any errors they will show up in Rick.txt

Hope that makes sense ..

Rick Lipkin

Rc2dll32.bat as mentioned above .. just my modifications below....

Code (fw): Select all Collapse
@Echo Off

DEL VehW32.DLL
DEL VehW32.RC
DEL VehW32.RES

COPY *.RC VehW32.RC

C:\BORLAND\BCC73\BIN\brcc32 -iC:\BORLAND\BCC73\include -v -iC:\BORLAND\BCC73\include\dinkumware -iC:\BORLAND\BCC73\include\windows\sdk VehW32.Rc >Rick.Txt



del *.iL?
del *.map
del *.obj
del *.~rc
del *.rws
del *.tds
echo done!
Posts: 336
Joined: Mon Dec 07, 2009 02:49 PM
Re: Need .RES File to include in my project !!!
Posted: Tue May 28, 2019 09:06 AM

Dear All ,

Many thanks for your suggestions...! I have tried to create .RES from .RC but I am getting an error that .RC file could not open but .RCr file is in the desired folder.

I am trying on Harbour 32 bit borland 7.10 compiler.

Thanks
Shridhar

Thanks

Shridhar

FWH 24.04, BCC 7 32 bit, MariaDB
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Need .RES File to include in my project !!!
Posted: Tue May 28, 2019 09:15 AM

cNavarro,

table 10 ".\images\database.bmp"

generally type 10 use with png file

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com

Continue the discussion