Solved

Open help from an app.

Posted on 1998-11-30
4
246 Views
Last Modified: 2013-11-20
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...
0
Comment
Question by:Ffaze
  • 2
4 Comments
 
LVL 2

Expert Comment

by:prasanth
ID: 1325563
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.
0
 

Author Comment

by:Ffaze
ID: 1325564
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....
0
 
LVL 2

Accepted Solution

by:
wyy_cq earned 50 total points
ID: 1325565
this API can do that for you :


hWnd=GetSafeHwnd();
::WinHelp(hWnd,"c:\\help.hlp",HELP_CONTENTS ,0);

or you can modify the CWinApp:: m_pszHelpFilePath
and then call CWinApp::OnHelp();

 

0
 

Author Comment

by:Ffaze
ID: 1325566
Thank you very much, it should be HELP_FINDER instead of HELP_CONTENTS.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Whole sheet autoscrub still needed 19 51
sameEnds challenge 3 180
countEvens challenge 2 112
centeredAverage challenge 8 179
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question