Solved

Directory location of help file

Posted on 1997-10-02
5
144 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
  • 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

743 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

11 Experts available now in Live!

Get 1:1 Help Now