My first-ever question to Experts-Exchange follows:
I have to add HtmlHelp based help system for my application, which is being developed using Watcom 11 ('96) compiler.
I have a problem opening the HtmlHelp viewer window using HtmlHelp API.
First thing I've tried was doing it by the book (HtmlHelp Workshop + docs). I've added htmlhelp.lib from the workshop, but when I simply call:
, "GM.chm", HH_DISPLAY_TOPIC, NULL);
I get no response - an hourglass cursor shows for a second, but nothing appears and the function returns 0.
I've tried adding "mk:@MSITStore:" in the beginning of the file's path, as someone has done somehere or "::/topic.htm" in the end, but for no good.
I've downloaded "The C++ Builder HH Kit" from www.helpware.net
. It contains a htmlhelp.lib file that works fine in Borland C++ Builder, but when I attached it to my Watcom project's target I'd got the following errors list while trying to build the project:
wmake -f c:\sysman\sysman5.mk -h -e c:\sysman\win\gmsysw.exe
wlib -b -c -n -q -p=512 sqlfrmw.lib @sqlfrmw.lb1
wlink name gmsysw d all SYS nt_win op m libp .\;c:\sqlany50\win32\lib libf odbc32.lib op maxe=25 op q op symf @gmsysw.lk1Error! E2028: _HtmlHelpA@16 is an undefined reference
.cpp): undefined symbol _HtmlHelpA@16
Error(E42): Last command making (c:\sysman\win\gmsysw.exe)
returned a bad status
Error(E02): Make execution terminated
I thought that it might be some OMF/COFF handling problem, but someone from Sybase told me that Watcom handles both lib types.
Maybe this .lib is an import library and has to be used differently?
Maybe someone could provide a working example or a link to a sample that could work under Watcom.
I don't know much about COM, but I guess it's quite new - maybe that's the problem? Maybe the compiler doesn't know how to handle this?
I have Watcom 11 ('96) and don't know where to turn for help, as it seems this isn't supported any more and there are no newer versions... We plan to move to a different one (VS probably), but that's far future and it will take a lot of time to move the 1500 files of the project.
Please, I will appreciate any help.
PS. I've found that there might be some problems with incompatibility between COFF libs for VS5 and VS6 and that the new ones should be converted back to VS5 version to work under Watcom. That would be quite a hint if it is where the problem lies. Now - how do I convert it? The Watcom FAQ stated something about downloading MS PSDK, but there's no lib tool that would enable execution of:
LIB newlibrary.lib /CONVERT /LINK50COMPAT /OUT:oldlibrary.lib