ich möchte mit "BUser:=GetEnvironmentVariable('USERNAME');" den Usernamen holen.
Das hat bisher auch immer geklappt.
GetEnvironmentVariable steht ja in USES SysUtils.
Jetzt brauche ich aber neben SysUtils auch Windows in USES.
da ich Varibale "Inputs: Array[0..3] of Windows.TInput;"
und Befehl "h:=ShellExecute(0, nil, PChar(f4), nil, nil, SW_SHOWNORMAL);" brauche.
Und nun kriege ich bei dem Befehl: BUser:=GetEnvironmentVariable('USERNAME');
foldende Fehlermeldung:
Da scheint sich SysUtils und Windows zu beissen.unit1.pas(606,12) Error: Wrong number of parameters specified for call to "GetEnvironmentVariable"
ascdef.inc(75,10) Error: Found declaration: GetEnvironmentVariable(PChar;PChar;LongWord):DWord;
Hat Jemand eine Idee wie wir die Kuh vom Eis kriegen????
Danke und Gruß
Jürgen