Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why won't Help work after deployment? 1

Status
Not open for further replies.

delphiman

Programmer
Dec 13, 2001
422
ZA
The Help.html in my Delphi 6 Enterprise system is Shelled from the EventHandler
of a TBitBtn as follows

procedure TfrmGroc.btbtnHelpClick(Sender: TObject);
begin
ShellExecute(hInstance, 'OPEN', PChar(Application.HelpFile), nil, nil, sw_Normal);
end;

This works fine on the Development System but when deployed won't respond on the TargetSystem.

I might mention that the Helpfile has been succesfully deployed and a short-cut can be
created from it in the TargetSystem. And Help.html accessed that way on the TargetSystem works perfectly.

Can someone please throw some light on this?
 
Try using this code instead.
Code:
procedure TfrmGroc.btbtnHelpClick(Sender: TObject);
begin
  Application.HelpFile := 'C:\MyProg\MyHelp.HLP';
  Application.HelpCommand(HELP_FINDER, 0);
end;
This should launch your help file on any operating system!


When your feeling down and your resistance is low, light another cigarette and let yourself go [rockband]
 
I'll try ..
Application.HelpFile := 'C:\MyProg\MyHelp.HTML';
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top