|
#11
|
||||
|
||||
|
Help with the code...
Advanced users, I need help ...
I need help with with an adaptation of the code below to work inside the inno setup. Code:
function ConvertLanguageName(Const Value: String): String;
var
L: Integer;
WideCharCode: Word;
C: Char;
begin
Result := '';
L := 1;
while L <= Length(Value) do
begin
if Value[L] = '<' then
begin
//WideCharCode := Ord( StrToInt('$' + Copy(Value, L + 1, 4)));
WideCharCode := StrToInt('$' + Copy(Value, L + 1, 4));
L := L + 6;
end else begin
WideCharCode := Ord(Value[L]);
L := L + 1;
end;
C := Chr(WideCharCode);
SetLength(Result, Length(Result) + 1);
Result[Length(Result)] := C;
end;
end;
function InitializeSetup(): Boolean;
begin
MsgBox(ConvertLanguageName2('<0420><0443><0441><0441><043a><0438><0439>'), mbInformation, MB_OK); //Pусский
end;
![]() Delphi code to compare https://mega.nz/#!sZYGWTJJ!WnaRzdNsz...c9XM9AqdwF60aA Is there a way that works? Thanks! |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| INNO TROUBLESHOOT - Tutorials and Answers about INNO Setup | REV0 | Conversion Tutorials | 129 | 21-05-2021 05:51 |
| INNO TUTORIAL - Using Unicode and ANSI Versions of INNO Setup | REV0 | Conversion Tutorials | 51 | 26-03-2015 06:57 |
| Frequently Asked Questions | Joe Forster/STA | PC Games - Frequently Asked Questions | 0 | 29-11-2005 09:48 |