Solved

Directory location of help file

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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 Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

910 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

21 Experts available now in Live!

Get 1:1 Help Now