Browse Source

* Copied non-sysutils solution of win32/64

git-svn-id: trunk@21936 -
michael 13 years ago
parent
commit
8a9bd38cd7
1 changed files with 7 additions and 2 deletions
  1. 7 2
      rtl/wince/dynlibs.inc

+ 7 - 2
rtl/wince/dynlibs.inc

@@ -62,10 +62,15 @@ end;
 Function GetLoadErrorStr: string;
 
 Var
-  rc : integer;
+  rc,c : integer;
+  
 begin  
   rc := GetLastError;
-  str(rc,result);
+  SetLength(Result,255);
+  C:=FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM,nil,rc,
+                 MakeLangId(LANG_NEUTRAL, SUBLANG_DEFAULT),
+                 @Result[1], 255,nil);
+  SetLength(Result,c);
 end;
 
 {$endif}