Hi Nico
I downloaded the component but I get the follwing error when trying to install:-
Error message:
Types of actual and formal var parameters must be identical
Hope you can help!!!!
************************* code chunk
function WinUserName : String;
var
len : Integer;
begin
len := 0;
WNetGetUser (nil, nil, len); //error on this line
SetLength (Result, len);
if WNetGetUser (nil, PChar (Result), len) = 0 then
Result := StrPas (PChar (Result))
else
Result := '';
end;
****************************