Link to home
Start Free TrialLog in
Avatar of Ffaze
Ffaze

asked on

Open help from an app.

I´ve made an Dialog based app. And now I´ve also made a myhlp.hlp file. I have a button on my MFC app and now I want´to know the code for launching my hlp file when I click the button. I would really like the code for this since I´m new at MFC.
Thenx...
Avatar of prasanth
prasanth

Simply handle the button press like any other button and call AfxGetApp()->WinHelp(<helpid>) where <helpid> is the identifier of the topic in the help file.
Avatar of Ffaze

ASKER

I´m sorry but it doesn´t work, I´ve tried many different ways. I need to call the right help file also I tried to use the name but I don´t understand what you mean with HelpId, I´ve tried using the Id that I use when I call the topics in the Help file but that doesn´t work it comes up as undeclared identifier.
I would like some more help please....
ASKER CERTIFIED SOLUTION
Avatar of wyy_cq
wyy_cq

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Ffaze

ASKER

Thank you very much, it should be HELP_FINDER instead of HELP_CONTENTS.