Hello,
I don't know how to create DLL with only images inside.
Is there a sample in FWH package ?
Regards.
Images into DLL
- Badara Thiam
- Posts: 160
- Joined: Tue Oct 18, 2005 10:21 am
- Location: France
- Contact:
Images into DLL
Badara Thiam
http://www.icim.fr
http://www.icim.fr
- RAMESHBABU
- Posts: 591
- Joined: Fri Oct 21, 2005 5:54 am
- Location: Secunderabad (T.S), India
Hi Mr.Badara,
The following is the code of my RC2DLL.BAT
A) Place your Images in the RC file using any text editor as under
Example :
or from any resource editor like Borland Resource Workshop.
B) Save the .RC file
C) Then call the above RC2DLL.BAT <yourfile.rc>
You will get the YOURFILE.DLL
D) Use the YOURFILE.DLL in your application with the following call.
Hope my explation will help you.
You have complete freedom to have any type of resource in the DLL. It is upto you if you want only images in the DLL.
Regards,
- Ramesh Babu P
The following is the code of my RC2DLL.BAT
Code: Select all
rem RC file to 32 bits resources DLL
bcc32 -c c:\fwh\dll\screen32.c
brc32 -r %1.rc
ilink32 /Tpd c:\bcc55\lib\c0d32.obj screen32.obj, %1.dll,,c:\bc55\lib\cw32.lib c:\bcc55\lib\import32.lib,, %1.res
echo done!
Example :
Code: Select all
CARA1 BITMAP FILE "C:\FWH\BITMAPS\CARA1.BMP"
CARA2 BITMAP FILE "C:\FWH\BITMAPS\CARA2.BMP"
CARA3 BITMAP FILE "C:\FWH\BITMAPS\CARA3.BMP"
...
...
B) Save the .RC file
C) Then call the above RC2DLL.BAT <yourfile.rc>
You will get the YOURFILE.DLL
D) Use the YOURFILE.DLL in your application with the following call.
Code: Select all
SET RESOURCES TO "YOURFILE.DLL"
You have complete freedom to have any type of resource in the DLL. It is upto you if you want only images in the DLL.
Regards,
- Ramesh Babu P
- Badara Thiam
- Posts: 160
- Joined: Tue Oct 18, 2005 10:21 am
- Location: France
- Contact:
Hi Mr RAMESHBABU,
Your explanation has help me to understand all the way.
Thank you.
Regards.
Your explanation has help me to understand all the way.
Thank you.
Regards.
Badara Thiam
http://www.icim.fr
http://www.icim.fr
- RAMESHBABU
- Posts: 591
- Joined: Fri Oct 21, 2005 5:54 am
- Location: Secunderabad (T.S), India