Images into DLL

Images into DLL

Postby Badara Thiam » Mon Dec 15, 2008 10:15 am

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
Badara Thiam
 
Posts: 160
Joined: Tue Oct 18, 2005 10:21 am
Location: France

Postby RAMESHBABU » Tue Dec 16, 2008 12:26 am

Hi Mr.Badara,

The following is the code of my RC2DLL.BAT

Code: Select all  Expand view
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  Expand view
    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  Expand view
    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
RAMESHBABU
 
Posts: 624
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Postby Badara Thiam » Tue Dec 16, 2008 2:56 pm

Hi Mr RAMESHBABU,

Your explanation has help me to understand all the way.

Thank you.
Regards.
Badara Thiam
http://www.icim.fr
User avatar
Badara Thiam
 
Posts: 160
Joined: Tue Oct 18, 2005 10:21 am
Location: France

Postby RAMESHBABU » Thu Dec 18, 2008 6:03 am

Hi Mr.Badara,

It is nice to hear.

Regards,

- Ramesh Babu P
User avatar
RAMESHBABU
 
Posts: 624
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 103 guests