FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour A Question about convert ==> DLL to => LIB
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM

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

Posted: Sun Dec 21, 2008 05: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"





Regards
Uwe :-)
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.
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

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

Posted: Sun Dec 21, 2008 09: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
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM

Convert DLL to LIB

Posted: Sun Dec 21, 2008 09: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.

Continue the discussion