Need .RES File to include in my project !!!

Need .RES File to include in my project !!!

Postby shri_fwh » Mon May 27, 2019 1: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 19.12, BCC 7 32 bit, MariaDB
shri_fwh
 
Posts: 301
Joined: Mon Dec 07, 2009 2:49 pm

Re: Need .RES File to include in my project !!!

Postby vilian » Mon May 27, 2019 2: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
User avatar
vilian
 
Posts: 972
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: Need .RES File to include in my project !!!

Postby cnavarro » Mon May 27, 2019 2: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: Select all  Expand view

#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
User avatar
cnavarro
 
Posts: 6541
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Need .RES File to include in my project !!!

Postby Rick Lipkin » 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: Select all  Expand view

@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!

 
User avatar
Rick Lipkin
 
Posts: 2663
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Need .RES File to include in my project !!!

Postby shri_fwh » Tue May 28, 2019 9: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 19.12, BCC 7 32 bit, MariaDB
shri_fwh
 
Posts: 301
Joined: Mon Dec 07, 2009 2:49 pm

Re: Need .RES File to include in my project !!!

Postby Silvio.Falconi » Tue May 28, 2019 9: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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7033
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], wilsongamboa and 52 guests