Solved

Help for help File

Posted on 2000-04-05
3
183 Views
Last Modified: 2010-05-02
Easy qustion, i believe.
I want to know: if i put my help file in the same directory of my project, when i install it on another computer must i specify ( the help file is in the same path of the .exe) if yes HOW and WHERE to write it.
0
Comment
Question by:dosyl
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 12

Expert Comment

by:mark2150
ID: 2687057
No. It'll look in the EXE's directory by default.

M
0
 
LVL 4

Expert Comment

by:gcs001
ID: 2687577
mark2150 is correct in saying that the program will first search your application path for the file specified.

In your Setup package you can just add the Help file and set it so that it is installed to the $(AppPath).

Obviously in your code you could also specify something like:
App.HelpFile = App.Path & "\MyHelp.hlp"
to make sure.

Regards,
Grant.
0
 
LVL 1

Accepted Solution

by:
delmar earned 20 total points
ID: 2698700
There are a number of places your help file might go. The most common are in the application folder, or a subfolder specifically for your help file(s). Another place is the <%windir%>\help folder, which is also a default location for both the WinHelp and HTML Help engines to look.

Regardless of which file type you choose, the best thing you can do is register them. For WinHelp, the key is:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\HELP\

For HTML Help, the key is:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\HTML Help

By registering the help files and their paths, you don't need to worry about App.Path. Call the help file by its name only, and the help engine will use the registry to find the file.

David

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month6 days, 3 hours left to enroll

626 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