![]() |
DllProc in Delphi 7 und Delphi 8
Hallo,
welchen Typs ist in den genannten Versionen von Delphi (7&8) die Variable DllProc. Bitte mal nachschauen und mir auch die Typendeklaration hier reinstellen. Danke. Es geht darum, daß im DLL-Tutorial ein "Fehler" drin ist, wenn man mit Delphi 7 kompiliert und daß ich keine andere Idee hab. Oliver |
Re: DllProc in Delphi 7 und Delphi 8
Delphi-Quellcode:
TDllProc finde ich aber nicht. Wird aber der WinAPI entsprechen.
DllProc: TDLLProc; { Called whenever DLL entry point is called }
{ DllProcEx passes the Reserved param provided by WinNT on DLL load & exit } DllProcEx: TDLLProcEx absolute DllProc; |
Re: DllProc in Delphi 7 und Delphi 8
Oki, hat also Parameter. Bis Delphi 6 war es ein einfacher Pointer :-/
|
Re: DllProc in Delphi 7 und Delphi 8
Kleiner Nachtrag aus der System:
Delphi-Quellcode:
TDLLProc = procedure (Reason: Integer);
// TDLLProcEx provides the reserved param returned by WinNT TDLLProcEx = procedure (Reason: Integer; Reserved: Integer); |
Re: DllProc in Delphi 7 und Delphi 8
Alles klar, vielen Dank. Die Frage ist damit beantwortet. Dann muß ich also die Adresse von DllProc statt DllProc selber nehmen ... so zerbricht funktionierender Code.
Danke nochmals :cheers: |
Alle Zeitangaben in WEZ +1. Es ist jetzt 15:28 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