Einzelnen Beitrag anzeigen

EWeiss
(Gast)

n/a Beiträge
 
#8

Re: Übersetzung Class MagneticWindow

  Alt 9. Okt 2006, 15:25
Zitat von Muetze1:
In der Standardeinstellung sind deine Konstanten nicht wirklich konstant: man kann ihnen Werte zuweisen. So sind es dann statische Variablen.

Warum definierst du einen Zeiger auf die Struktur? Im Normalfall wird mit Txxx eine Klasse oder eine Struktur gekennzeichnet. Einem Zeiger auf eine Struktur wird im Normalfall ein Pxxx anstatt einem Txxx vorangestellt.

Und die [] bei dem Array kannst du getrost weglassen...
Delphi-Quellcode:
Type PSubData = ^TSubData; //Subclass data type
    TSubData = record
    hwnd : Integer; //Handle of the window being subclassed
    nAddrSub : Integer; //The address of our new WndProc (allocated memory).
    nAddrOrig : Integer; //The address of the pre-existing WndProc
    nMsgCntA : Integer; //Msg after table entry count
    nMsgCntB : Integer; //Msg before table entry count
    aMsgTblA : array of Integer; //Msg after table array
    aMsgTblB : array of Integer; //Msg Before table array
End;
Mit den Zeiger habe ich mir abgeschaut um die Leute hier nicht zu nerven
Wird hier kein zeiger benötigt? Und wenn warum ?

gruß
  Mit Zitat antworten Zitat