View Single Post
Old 12-04-2020, 16:56
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
Join Date: May 2011
Location: Brazil
Posts: 813
Thanks: 1,352
Thanked 1,751 Times in 591 Posts
Cesar82 is on a distinguished road

To correct the CPU name, you can try replacing PAnsiChar with WideString in your SysInfo source code.
function GetGPUName : PAnsiChar;
Replace by:
function GetGPUName : WideString;

I don't know if it will fix it, but as PAnsiChar doesn't support wide characters this error happens.

Or you can convert your code to ANSI using:
Result: = PAnsiChar (AnsiString (Utf8ToUnicodeString (strSource)));

Thanks for the smaller size update.
Reply With Quote
The Following 2 Users Say Thank You to Cesar82 For This Useful Post:
BLACKFIRE69 (13-04-2020), Titeuf (18-04-2020)