Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Directory location of help file

Posted on 1997-10-02
5
Medium Priority
?
161 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 160 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

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…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…

877 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