News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Creating import libs with Polib

Started by Vortex, January 15, 2005, 02:58:05 PM

Previous topic - Next topic

Vortex

Pelle's import librarian Polib has the capability of creating import libraries directly from DLLs:

\masm32\bin\polib /OUT:kernel32.lib \windows\system32\kernel32.dll
\masm32\bin\polib /OUT:user32.lib \windows\system32\user32.dll
\masm32\bin\polib /OUT:gdi32.lib \windows\system32\gdi32.dll


These libraries can be used with Polink

[attachment deleted by admin]

GregL

Can these libraries be used with the Microsoft Linker?

Vortex

Hi Greg,

I am not sure of that but it deserves a trial.

Vortex

#3
There is a method to use these libs with MS link but it doesn't seem to very usefull.
Declaring the functions like this:

extern ExitProcess:proc
extern GetModuleHandleA:proc
GetModuleHandle equ <GetModuleHandleA>
extern DialogBoxIndirectParamA:proc
DialogBoxIndirectParam equ <DialogBoxIndirectParamA>
extern EndDialog:proc
extern LoadIconA:proc
LoadIcon equ <LoadIconA>
extern LoadMenuIndirectA:proc
LoadMenuIndirect equ <LoadMenuIndirectA>
extern MessageBoxA:proc
MessageBox equ <MessageBoxA>
extern SendMessageA:proc
SendMessage equ <SendMessageA>
extern SetMenu:proc
extern CreateSolidBrush:proc
extern DeleteObject:proc


The attachment contains a linking example with MS link

[attachment deleted by admin]

GregL