locked
Context sensitive help doesnot work for HtmlHelp() RRS feed

  • Question

  • Hi,

     

    I am developing a MFC application. I started developing this application in Windows Xp but later got migrated to Windows 7. (That is when my miseries started L L)

    Anyways, let me explain the problem:

     

    In Windows XP:

    I run the application and press F1. F1 is used to display the help page for the particular software.

    For my software I had a file named MyHelp.hlp and whenever I used to press F1, this file used to get displayed.

    Also, I had set Help IDs for different screens using SetHelpId() function so that when I am in a particular screen and press help, the help would recognize the Help ID and display help related to that particular screen. I call this context sensitive help.

    Everything was file till here…

     

    Later,

    In Windows 7:

    I use the same application and when I pressed F1 to display the help file, it was not getting displayed.

    Later I learnt that Windows 7 does not support .hlp help files and so I migrated to .chm.

    I even avoided the use of WinHelp() to display the help file but used ::HtmlHelp() to display the CHM format help file.

    But here, I am unable to perform context sensitive help operation.

     

    The code snippet is:

    ::HtmlHelp(0, pApp->m_pszHelpFilePath, HH_DISPLAY_TOC, NULL) ;

     

     

    Thanks,

    Sudipto Dutta

    Thursday, February 17, 2011 11:28 AM

Answers

All replies