Einzelnen Beitrag anzeigen

ustra

Registriert seit: 12. Mär 2003
Ort: Geesthacht
138 Beiträge
 
Delphi 5 Professional
 
#5

Re: Wo ist hier der (Denk-)Fehler? Aufruf von EnumWindowsPro

  Alt 5. Feb 2004, 17:10
Hi,

ich habe eben noch mal gesucht, weil Delphi mir static nicht als fett markiert hat, kam mir das etwas komisch vor und bin fündig geworden. Ich habe es jetzt mal als:
 class function EnumWindowsProc(const hWindow : DWORD;const AdwDummy : DWORD) : Longbool; stdcall; deklariert und nun kommt der Fehler nicht mehr. Dafür sagt mir der Compiler in der Zeile:
Delphi-Quellcode:
    if (pcaption^ <> '')
    then
      kontrolle(pcaption);
Diese Form des Methodenaufrufes ist nur für Klassenmethoden erlaubt.

Beste Grüße
Ulrich
Ulrich Strauer
  Mit Zitat antworten Zitat