Solved

Directory location of help file

Posted on 1997-10-02
5
157 Views
Last Modified: 2010-04-04
When I first run my program the help command (F1) works fine.

After I use an open dialogue to open a file the help command fails because the system seems to look in the new directory rather than the program directory.

Any ideas how to fix this?

ta Chris

(PS using C++Builder)
0
Comment
Question by:chrishart
[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
  • 2
  • 2
5 Comments
 
LVL 8

Expert Comment

by:ZifNab
ID: 1346756
Where do you define your help-file directory?
0
 
LVL 1

Accepted Solution

by:
fsanchez earned 40 total points
ID: 1346757
If you have a file located in your application path (or in a subdirectory) you can do this:

FileNameToUse := ExtractFilePath(Application.ExeName) +
  MyFileName;
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1346758
fsanchez,
it's easier to do it in the project source :
like this   Application.Helpfile := '{path & or Filename}';

That's why I asked where he defined his help-file directory.

0
 

Author Comment

by:chrishart
ID: 1346759
Thanks that looks like it should work.

Sorry about the stibgy points they're all I have !

Cheers Chris
0
 

Author Comment

by:chrishart
ID: 1346760
Thanks ZiffNab for the extra help.

My hlp file is kept along with the .exe

cheers chris
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses
Course of the Month10 days, 11 hours left to enroll

632 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