🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #556

Re: HtmlHelp() causing HtmlHelp.h and HtmlHelp.lib Linker Error Frustration

#556
From: Remy Lebeau (TeamB)
Date: Thu, 31 Jan 2008 22:24
39 lines
2564 bytes
"Chad" <crussell@betterprograms.com> wrote in message 
news:47a23568$1@newsgroups.borland.com...

> I have placed the HtmlHelp.lib in my lib folder and the HtmlHelp.h
> in my include folder that came with the Microsoft HTML Help Workshop.

That .lib file is not going to be compatible with CodeGear's compiler, as it 
is meant for VC++ instead.

> When I try to compile I get an Unresolved External on 'HtmlHelp'!

You did not add the .lib file (well, a compatible version of it, anyway) to 
the project.  Simply putting the file into the folder is not enough for the 
linker to use it.

> Does anyone else call on a .chm file using HtmlHelp()?

I suggest you go to http://www.deja.com and search the newsgroup archives. 
The topic of using HtmlHelp has been discussed in detail many many times 
before.  In fact, the VCL has supported handling CHM files in the 
TApplication::HelpFile property, just like it does for HLP files, since BCB 
6.  You do not need to call HTMLHelp() directly.  All you need is to call 
RegisterViewer() to register a class that derives from the ICustomHelpViewer 
interface.  The VCL handles the rest for you.  The VCL has a native 
implementation of ICustomHelpViewer for HLP files, but you can add your own 
separately as well.  There are plenty of third-party implementations 
available for HTMLHelp, for example:

    http://cc.borland.com/Item/22408

    http://www.torry.net/vcl/vcltools/help/sphtmlhelp.zip

    http://www.ec-software.com/comppage.htm

Just to name a few.


Gambit 
Technical Details
Message-ID: <47a24a8c$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <47a23568$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,92d2c845b4837055
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <47a23568$1@newsgroups.borland.com>
Subject: Re: HtmlHelp() causing HtmlHelp.h and HtmlHelp.lib Linker Error Frustration
Date: Thu, 31 Jan 2008 14:24:56 -0800
Lines: 41
Organization: Lebeau Software
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
NNTP-Posting-Host: 207.178.157.90
Message-ID: <47a24a8c$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1201818252 207.178.157.90 (31 Jan 2008 14:24:12 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail