Page 1 of 1
Images into DLL
Posted: Mon Dec 15, 2008 10:15 am
by Badara Thiam
Hello,
I don't know how to create DLL with only images inside.
Is there a sample in FWH package ?
Regards.
Posted: Tue Dec 16, 2008 12:26 am
by RAMESHBABU
Hi Mr.Badara,
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!
A) Place your Images in the RC file using any text editor as under
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"
...
...
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
Posted: Tue Dec 16, 2008 2:56 pm
by Badara Thiam
Hi Mr RAMESHBABU,
Your explanation has help me to understand all the way.
Thank you.
Regards.
Posted: Thu Dec 18, 2008 6:03 am
by RAMESHBABU
Hi Mr.Badara,
It is nice to hear.
Regards,
- Ramesh Babu P