Images into DLL

Post Reply
User avatar
Badara Thiam
Posts: 160
Joined: Tue Oct 18, 2005 10:21 am
Location: France
Contact:

Images into DLL

Post by Badara Thiam »

Hello,

I don't know how to create DLL with only images inside.

Is there a sample in FWH package ?

Regards.
Badara Thiam
http://www.icim.fr
User avatar
RAMESHBABU
Posts: 591
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Post 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.

Code: Select all

    SET RESOURCES TO "YOURFILE.DLL"
   
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
User avatar
Badara Thiam
Posts: 160
Joined: Tue Oct 18, 2005 10:21 am
Location: France
Contact:

Post by Badara Thiam »

Hi Mr RAMESHBABU,

Your explanation has help me to understand all the way.

Thank you.
Regards.
Badara Thiam
http://www.icim.fr
User avatar
RAMESHBABU
Posts: 591
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Post by RAMESHBABU »

Hi Mr.Badara,

It is nice to hear.

Regards,

- Ramesh Babu P
Post Reply