home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / mswindo / programm / misc / 4453 < prev    next >
Encoding:
Text File  |  1992-12-23  |  1.6 KB  |  56 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!cs.utexas.edu!torn!nott!emr1!jagrant
  3. From: jagrant@emr1.emr.ca (John Grant)
  4. Subject: can't get HELP_CONTEXT to work with #defines
  5. Message-ID: <1992Dec23.181639.8055@emr1.emr.ca>
  6. Organization: Energy, Mines, and Resources, Ottawa
  7. Date: Wed, 23 Dec 1992 18:16:39 GMT
  8. Lines: 46
  9.  
  10. Ok, I'm getting on quite well with my help now, except for one problem:
  11.  
  12. "Warning 4098: Context string(s) in [MAP] section not defined 
  13.         in any topic.."
  14.  
  15. and sure enough, WinHelp can't find them either.
  16.  
  17. Here is my .HPJ file:
  18.         [files]
  19.         myapp.rtf
  20.  
  21.         [map]
  22.         #include <helpid.h>
  23.  
  24. and helpid.h looks like:
  25.         #define HELPID_XXX      101
  26.         #define HELPID_YYY      102
  27.         ...
  28.  
  29. Using Word for Windows, I put in # footnotes for these topics 
  30. using HELPID_XXX etc as the context string, i.e. the context,
  31. title & keyword footnotes for the topic look like:
  32.         # HELPID_XXX
  33.         $ Help for XXX
  34.         K xxx
  35. (and yes, I double-checked that there is only ONE space after the
  36. #, $ and K symbols).
  37.  
  38. When I do: 
  39.         Winhelp(hwnd,"myapp.hlp",HELP_CONTEXT,HELPID_XXX);
  40. it says "can't find topic".  Not surprising, since HC already 
  41. reported a similar error.
  42.  
  43. How does HC distinguish between a #defined CONSTANT in a footnote:
  44.         # HELPID_XXX
  45. and a context string in the footnote:
  46.         # ContextString
  47.  
  48. The docs don't really point out any difference between a context 
  49. string & a #defined constant.  They just say "use a # footnote".
  50.  
  51. What am I doing wrong?
  52. -- 
  53. John A. Grant                        jagrant@emr1.emr.ca
  54. Airborne Geophysics
  55. Geological Survey of Canada, Ottawa
  56.