Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi Unicode in PAS/DPR? (https://www.delphipraxis.net/69833-unicode-pas-dpr.html)

himitsu 20. Mai 2006 18:36


Unicode in PAS/DPR?
 
Laut sakuras Code sol es ja öglich zu sein ... aber da es in D4/D7 nicht möglich ist, wollt ich hal wissen, ob's stimmt, und ab wann es geht.

Delphi-Quellcode:
begin
  WS := '桜 の 空手';
  MessageBoxW(0, PWideChar(WS), 'no caption', 0);
  for I := 0 to Length(WS) do
aus http://www.delphipraxis.net/internal...=548561#548561

Bernhard Geyer 20. Mai 2006 20:57

Re: Unicode in PAS/DPR?
 
Wenn Du nur wenige Strings hast kannst Du folgenden "Trick" machen:

Delphi-Quellcode:
WS := WideChar(#$5555) + WideChar(#$5556) ...;


Alle Zeitangaben in WEZ +1. Es ist jetzt 23:34 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz