![]() |
Re: Migration Delphi 6 > Delphi 2010 bzgl. Unicode
Also ich muss doch noch einmal nachfragen:
Wenn ich eine D6-Datenstruktur habe wie
Delphi-Quellcode:
Wie stelle ich das so um, dass alles genau passt? Vielen Dank für Eure Hilfe!
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; |
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.
|
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. |
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