NO

Author Topic: POLIB: warning: Unable to find member...  (Read 2646 times)

Offline jj2007

  • Member
  • *
  • Posts: 516
POLIB: warning: Unable to find member...
« on: April 18, 2013, 12:39:50 am »
What is the meaning of this warning?

polib /def:mshtml.def /extract:ShowHTMLDialog /out:test.lib /machine:x86
POLIB: warning: Unable to find member 'ShowHTMLDialog'.


mshtml.def:
LIBRARY "MSHTML.dll"
EXPORTS
ShowHTMLDialog


As a matter of fact, the created library (1412 bytes) works like a charm...

CLR

  • Guest
Re: POLIB: warning: Unable to find member...
« Reply #1 on: April 18, 2013, 02:44:20 am »
Hi jj2007

/DEF and /EXTRACT are mutually exclusive. It makes no sense to use them both at the same time.  :)

Offline jj2007

  • Member
  • *
  • Posts: 516
Re: POLIB: warning: Unable to find member...
« Reply #2 on: April 18, 2013, 08:49:44 am »
Thanks. However, if I use this command line...
C:\Masm32\bin>polib C:\Windows\System32\mshtml.dll /extract:ShowHTMLDialog /out:test.lib /machine:x86
... I get a bunch of new warnings ...
POLIB: warning: '' already defined in 'MSHTML.dll'; ignoring definition in 'MSHTML.dll'.
POLIB: warning: '__imp_' already defined in 'MSHTML.dll'; ignoring definition in 'MSHTML.dll'.
... and a much bigger lib file (5706 instead of 1412 bytes).

Is there any logic in this?

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2006
Re: POLIB: warning: Unable to find member...
« Reply #3 on: April 18, 2013, 02:07:58 pm »
T... I get a bunch of new warnings ...
POLIB: warning: '' already defined in 'MSHTML.dll'; ignoring definition in 'MSHTML.dll'.
POLIB: warning: '__imp_' already defined in 'MSHTML.dll'; ignoring definition in 'MSHTML.dll'.
... and a much bigger lib file (5706 instead of 1412 bytes).

Is there any logic in this?
Those exports are ordinals only.

Just create lib from def-file, because those exports are undecorated __stdcall functions.
Code: [Select]
polib.exe /def:mshtml.def /out:mshtml.lib /machine:x86
Code: [Select]
; mshtml.def
LIBRARY mshtml.dll
EXPORTS
_ShowHTMLDialog@20
May the source be with you

Offline jj2007

  • Member
  • *
  • Posts: 516
Re: POLIB: warning: Unable to find member...
« Reply #4 on: April 18, 2013, 04:18:36 pm »
The stdcall decoration did the trick, thanks!

_ShowHTMLDialog@20