Autor Beitrag
Killi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 299

Win*
D6 Prof
BeitragVerfasst: Di 17.06.03 14:16 
Wie mache ich das?
Es gibt da keinen Cancel-Befehl - wie soll ich das denn machen?
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Di 17.06.03 14:58 

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Killi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 299

Win*
D6 Prof
BeitragVerfasst: Di 17.06.03 15:19 
Da kommt bei mir folgender Fehler: "Incompatible types: regular procedure and method pointer" und er zeigt auf die Zeile "HookID := SetWindowsHookEx(WH_MOUSE, MouseProc, 0, GetCurrentThreadId());" hinter MouseProc - muss ich noch ne unit einbinden, oder...???
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Di 17.06.03 18:31 
nee eigendlich nicht. komisch !

_________________
In the beginning was the word.
And the word was content-type: text/plain.
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Di 17.06.03 19:32 
Hi!

Die MouseProc darf eben keine Methode einer Klasse sein.
Musst es halt genau so schreiben wie im Tipp.
Also z.B nicht so:

ausblenden Delphi-Quelltext
1:
function TForm1.MouseProc(nCode: Integer; wParam, lParam: Longint): Longint; stdcall;					


sondern


ausblenden Delphi-Quelltext
1:
function MouseProc(nCode: Integer; wParam, lParam: Longint): Longint; stdcall;