Page 1 of 1
Need .RES File to include in my project !!!
Posted: Mon May 27, 2019 1:29 pm
by shri_fwh
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
Re: Need .RES File to include in my project !!!
Posted: Mon May 27, 2019 2:26 pm
by vilian
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.
Re: Need .RES File to include in my project !!!
Posted: Mon May 27, 2019 2:50 pm
by cnavarro
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
#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"
Re: Need .RES File to include in my project !!!
Posted: Mon May 27, 2019 10:06 pm
by Rick Lipkin
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
@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!
Re: Need .RES File to include in my project !!!
Posted: Tue May 28, 2019 9:06 am
by shri_fwh
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
Re: Need .RES File to include in my project !!!
Posted: Tue May 28, 2019 9:15 am
by Silvio.Falconi
cNavarro,
table 10 ".\images\database.bmp"
generally type 10 use with png file