🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

WinHelp and keywords

#8308
From: James Christie
Date: Wed, 10 Nov 2004 22:50
19 lines
1666 bytes
  I am wanting to use WinHelp with keywords but I am having trouble passing
the keyword.  I have written the following function that takes the help
filename and the keyword to look up.

void  TForm1::Callhelp(const AnsiString filename, const AnsiString keyword)
{
    WinHelp(this->Handle, filename.c_str(), HELP_KEY, (unsigned long)
&keyword);
}

  This successfully opens the WinHelp file but not at the page containing
the keyword.  It open's the WinHelp Index tab instead with garbage as the
text to look for.
  The help file for WinHelp says the last parameter should be the address of
the Keyword and the compiler says it want's it as unsigned long so what have
I got wrong ??

Thanks
James
Technical Details
Message-ID: <41929b49$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!zen.net.uk!dedekind.zen.co.uk!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,9cce4a4d4b7f04c9,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "James Christie" <james@texmate.co.nz>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: WinHelp and keywords
Date: Thu, 11 Nov 2004 11:50:50 +1300
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 210.48.81.101
Message-ID: <41929b49$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1100127049 210.48.81.101 (10 Nov 2004 14:50:49 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!zen.net.uk!dedekind.zen.co.uk!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail