![]() |
HLP -Dateien in Delphi 2005
Hallo,
ich habe folgendes Problem. Habe ein Delphi 5 Projekt in Delphi 2005 compiliert. Es funktioniert auch alles prima, bis auf den Aufruf der hlp-Datei. Da erhalte ich eine exception. Stimmt es, dass Delphi 2005 diese Hilfedateien nicht mehr unterstützt? Wenn ja, gibt es eine Möglichkeit zur Lösung des Problems? Konnte dem Netz bisher nur verwirrende Angaben entnehmen. Bin dankbar für jeden Tipp. |
Re: HLP -Dateien in Delphi 2005
Binde Winhelp im Projekt ein.
Gruß Peter |
Re: HLP -Dateien in Delphi 2005
Eine Unit Winhelp kennt mein Delphi nicht...
Schreib' einfach einen Handler für Application.OnHelp in deiner Hauptformularklasse:
Delphi-Quellcode:
type
TForm1 = class(TForm) //... private function ApplicationHelp(Command: Word; Data: Integer; var CallHelp: Boolean): Boolean; //... end; //... function TForm1.ApplicationHelp(Command: Word; Data: Integer; var CallHelp: Boolean): Boolean; begin CallHelp := false; Result := not WinHelp(Handle, PChar(Application.HelpFile), Command, Data); end; procedure TForm1.FormCreate(Sender: TObject); begin //... Application.OnHelp := ApplicationHelp; //... end; |
Re: HLP -Dateien in Delphi 2005
Dankeschön Flocke!
Funktioniert prima. Gruß |
Alle Zeitangaben in WEZ +1. Es ist jetzt 11:06 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz