Autor Beitrag
Silas
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 478

Windows XP Home
Delphi 2005, RAD Studio 2007, MASM32, FASM, SharpDevelop 3.0
BeitragVerfasst: So 12.11.06 10:07 
Moin!

Ich hab in meinem Quelltext folgende Deklaration geschrieben (Eingebunden: Windows, Messages und MMSystem):
ausblenden Delphi-Quelltext
1:
procedure OnJoyMove(Msg: TMessage); message MM_JOY1MOVE;					


Und jetzt bekomm ich folgende Meldung:
[Fehler] Unbekannte Direktive: "message"

Was hab ich da falsch gemacht?

_________________
Religionskriege sind nur Streitigkeiten darüber, wer den cooleren imaginären Freund hat ;-)
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: So 12.11.06 10:21 
Du hast das var vergessen!
ausblenden Delphi-Quelltext
1:
procedure OnJoyMove(var Msg: TMessage); message MM_JOY1MOVE;					


Außerdem solltest du statt TMessage lieber die korrekte Message nehmen (die ist in Delphis MMSystem Unit aber erstmal nicht drin...):
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
  TMMJoyStick  = packed record
    Msg:     Cardinal;  // The message ID
    Buttons: Longint;   // The wParam
    XPos:    word;      // The lParam
    YPos:    word;
    Result:  Longint;
  end;
Silas Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 478

Windows XP Home
Delphi 2005, RAD Studio 2007, MASM32, FASM, SharpDevelop 3.0
BeitragVerfasst: Mo 21.05.07 10:12 
Reichlich spät, aber:

am var war's nicht gelegen, aber ich hab die Deklaration aus Versehen global statt zu TForm1 geschrieben, und in diesem Fall kann's natürlich keine messages geben. ( :oops: )

_________________
Religionskriege sind nur Streitigkeiten darüber, wer den cooleren imaginären Freund hat ;-)