A Question about convert ==> DLL to => LIB

A Question about convert ==> DLL to => LIB

Postby ukoenig » Sun Dec 21, 2008 5:49 pm

Hello,

Can this be a useful tool, together with FWH,
to convert DLL's to LIB and include in the Make-file ?
If it is possible to use the tool, I don't need these functions ?

DLL32 FUNCTION CREATEDIBITMAP( hDC AS LONG, hInfoH AS LONG, nFlags AS LONG, ;
hBits AS LONG, hInfo AS LONG, nUsage AS LONG ) AS LONG ;
PASCAL FROM "CreateDIBitmap" LIB "gdi32.dll"

Image

Image

Regards
Uwe :lol:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Postby Antonio Linares » Sun Dec 21, 2008 9:12 pm

Uwe,

It may work for some DLLs, but Windows DLLs as "gdi32.dll" can't be converted into static LIBs.

What you can do is to use implib.exe to create an import library from a DLL, and then code your function in C code instead of using DLL FUNCTION ... (static linking vs. dynamic linking).
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Convert DLL to LIB

Postby ukoenig » Sun Dec 21, 2008 9:45 pm

Antonio,

thank You very much for the information.
Reading the text, I didn't know exactly, what i could
do with it.

Regards
Uwe :lol:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany


Return to FiveWin for Harbour/xHarbour

Who is online

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