Autor Beitrag
Chryzler
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1097
Erhaltene Danke: 2



BeitragVerfasst: Fr 05.01.07 22:20 
Hallo,

welchen Parametertyp erwartet SetKeyboardState? Warum meldet mein Compiler immer einen Fehler?
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
procedure TForm1.Timer1Timer(Sender: TObject);
var
  k: array[0..255] of Byte;
begin
  SetKeyboardState(k);
end;

Zitat:

[Error] Unit1.pas(31): E2033 Types of actual and formal var parameters must be identical


Danke
Chryzler
JayEff
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: Fr 05.01.07 22:51 
Du ärmster sollst auch nicht leben wie in Hund ;)
Es erwartet ein TKeyboardState, laut Kontexthilfe.

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.
Chryzler Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1097
Erhaltene Danke: 2



BeitragVerfasst: Fr 05.01.07 22:54 
Danke! :D Auf dich ist wenigstens verlass. Die Funktion ist bie mir aber nicht in der Hilfe...
JayEff
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: Fr 05.01.07 22:55 
Bei mir auch nicht, hab einfach SetKeyboardState( eingegeben und beim ( erscheint ein gelbes hintfenster bei mir, welches die Parameter anzeigt.

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.
Chryzler Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1097
Erhaltene Danke: 2



BeitragVerfasst: Fr 05.01.07 22:58 
Jetzt kommts bei mir auch LOL :shock:
Seit einer 3/4 Stunde warte ich auf den Hint. Einmal Delphi neustarten wirkt Wunder.