Solved

Open help from an app.

Posted on 1998-11-30
4
243 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Thank you very much, it should be HELP_FINDER instead of HELP_CONTENTS.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now