Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi DllProc in Delphi 7 und Delphi 8 (https://www.delphipraxis.net/18333-dllproc-delphi-7-und-delphi-8-a.html)

Assarbad 16. Mär 2004 21:13


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

neolithos 16. Mär 2004 21:35

Re: DllProc in Delphi 7 und Delphi 8
 
Delphi-Quellcode:
  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;
TDllProc finde ich aber nicht. Wird aber der WinAPI entsprechen.

Assarbad 16. Mär 2004 21:38

Re: DllProc in Delphi 7 und Delphi 8
 
Oki, hat also Parameter. Bis Delphi 6 war es ein einfacher Pointer :-/

neolithos 16. Mär 2004 21:39

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);

Assarbad 16. Mär 2004 21:41

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