LCL: added SysErrorMessageUTF8

git-svn-id: trunk@16657 -
This commit is contained in:
vincents 2008-09-19 21:14:03 +00:00
parent 0f1e56d462
commit 46f03b20ca
2 changed files with 8 additions and 0 deletions

View File

@ -216,6 +216,9 @@ function GetEnvironmentStringUTF8(Index: Integer): string;
function GetEnvironmentVariableUTF8(const EnvVar: string): String;
function GetAppConfigDirUTF8(Global: Boolean): string;
// other
function SysErrorMessageUTF8(ErrorCode: Integer): String;
implementation
uses

View File

@ -243,6 +243,11 @@ begin
Result:=SysToUTF8(SysUtils.GetAppConfigDir(Global));
end;
function SysErrorMessageUTF8(ErrorCode: Integer): String;
begin
Result:=SysToUTF8(SysUtils.SysErrorMessage(ErrorCode));
end;
{------------------------------------------------------------------------------
DirPathExists
------------------------------------------------------------------------------}