🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.misc
Article #1818

can't get HELP_CONTEXT to work with #defines

#1818
From: John Grant
Date: Wed, 23 Dec 1992 18:16
46 lines
1706 bytes
Ok, I'm getting on quite well with my help now, except for one problem:

"Warning 4098: Context string(s) in [MAP] section not defined 
        in any topic.."

and sure enough, WinHelp can't find them either.

Here is my .HPJ file:
        [files]
        myapp.rtf

        [map]
        #include <helpid.h>

and helpid.h looks like:
        #define HELPID_XXX      101
        #define HELPID_YYY      102
        ...

Using Word for Windows, I put in # footnotes for these topics 
using HELPID_XXX etc as the context string, i.e. the context,
title & keyword footnotes for the topic look like:
        # HELPID_XXX
        $ Help for XXX
        K xxx
(and yes, I double-checked that there is only ONE space after the
#, $ and K symbols).

When I do: 
        Winhelp(hwnd,"myapp.hlp",HELP_CONTEXT,HELPID_XXX);
it says "can't find topic".  Not surprising, since HC already 
reported a similar error.

How does HC distinguish between a #defined CONSTANT in a footnote:
        # HELPID_XXX
and a context string in the footnote:
        # ContextString

The docs don't really point out any difference between a context 
string & a #defined constant.  They just say "use a # footnote".

What am I doing wrong?
-- 
John A. Grant						jagrant@emr1.emr.ca
Airborne Geophysics
Geological Survey of Canada, Ottawa
Technical Details
Message-ID: <1992Dec23.181639.8055@emr1.emr.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!torn!nott!emr1!jagrant

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!torn!nott!emr1!jagrant
From: jagrant@emr1.emr.ca (John Grant)
Subject: can't get HELP_CONTEXT to work with #defines
Message-ID: <1992Dec23.181639.8055@emr1.emr.ca>
Organization: Energy, Mines, and Resources, Ottawa
Date: Wed, 23 Dec 1992 18:16:39 GMT
Lines: 46