Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi Migration Delphi 6 > Delphi 2010 bzgl. Unicode (https://www.delphipraxis.net/142151-migration-delphi-6-delphi-2010-bzgl-unicode.html)

Frederika 23. Okt 2009 13:20

Re: Migration Delphi 6 > Delphi 2010 bzgl. Unicode
 
Also ich muss doch noch einmal nachfragen:

Wenn ich eine D6-Datenstruktur habe wie

Delphi-Quellcode:
TRawFormat = Packed Record
FileStr     : String[3]; { 1 byte "length" and 3 bytes char }
Modelname   : String[11];
FileType    : Integer;   { 4 byte }
GTFIndex    : SmallInt;  { 2 byte }
AHZG        : Char; { 1 byte }
AHZB        : Char; { 1 byte }
{...}
end;
Wie stelle ich das so um, dass alles genau passt? Vielen Dank für Eure Hilfe!

Apollonius 23. Okt 2009 13:23

Re: Migration Delphi 6 > Delphi 2010 bzgl. Unicode
 
Du ersetzt das Char bei AHZG und AHZB durch AnsiChar. Sonst passt alles, denn Shortstrings sind immer Ansi.

himitsu 23. Okt 2009 13:46

Re: Migration Delphi 6 > Delphi 2010 bzgl. Unicode
 
statt Integer macht sich LongInt auch nicht schlecht ... sicher is sicher

LongInt ist immer 4 Byte


Alle Zeitangaben in WEZ +1. Es ist jetzt 15:38 Uhr.
Seite 2 von 2     12   

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