Skip to content

HtmlHelp #2

Closed Answered by nidud
jklwn4 asked this question in Q&A
Dec 18, 2023 · 5 comments
Discussion options

You must be logged in to vote

It's simpler in 64-bit (and __cdecl in 32-bit) as you can use the export names directly. The installer uses LIBW to create the import libraries for 64-bit by default, but optionally also LIB.

The .DEF file for LIBW:

++AuthorMsg.'hhctrl.ocx'
++HhWindowThread.'hhctrl.ocx'
++HtmlHelpA.'hhctrl.ocx'
++HtmlHelpW.'hhctrl.ocx'
++LoadHHA.'hhctrl.ocx'
++doWinMain.'hhctrl.ocx'

Command:

libw /n /c /q /b /fac /i6 htmlhelp.lib @hhctrl.def

The .DEF file for LIB:

LIBRARY hhctrl.ocx
EXPORTS
AuthorMsg
HhWindowThread
HtmlHelpA
HtmlHelpW
LoadHHA
doWinMain

Command:

lib /out:htmlhelp.lib /machine:X64 /def:hhctrl.def

Note that the Dll* functions was removed here:

hhctrl.def : warning LNK4104: export of symb…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jklwn4
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants