Is the D2010 Update Really Important

I am trying to port my own projects to delphi 2010. But it seems very complicated.

  • I use TntControls for old projects. If I remove this library, some runtime functions must be reimplemented by me. For example: convert UnicodeString to the specified code page.
  • "SizeOf", "Length", FillChar () still confuse me. The compiler issues a warning if the SizeOf () parameter should be replaced with Length (). But I did not find any idiotic guidelines for me.
  • An incomprehensible warning when trying to pass AnsiString to UnicodeString. This conversation will not lead to data loss, right?
  • Many codes (zip, string utils, etc.) must be re-tested.

Too many headaches ... Can anyone share their experience on moving an existing project from a very old delphi to delphi 2010?

+3
source share
2 answers
  • If you use Tnt and you are already converting between pages of code, then yes, switching to Delphi 2010 will lead to additional work, because you will need to remove the code for the things that Delphi now processes essentially. Ultimately, your code will be simpler, but it will be a hassle to get it there in the meantime.

  • SizeOf, Length FillChar - , , , . , , . TBytes; . . , , SizeOf; , "", "". , FillChar; , , , . "char", , , ZeroMemory. , FillChar, , Delphi inlining.

  • AnsiString UnicodeString, , , . , . - ( Utf8String, UnicodeString, Unicode). - AnsiString . , , , .

  • , "retest" . , , . - , ; , - .

+8
  • Unicode Delphi: , -. String .
  • FillChar - , , . .
  • , , . .
  • . .

Delphi 2009/2010 :

. , ( , RAD/delphi), , .

. , . TNT , .

. , . "" Delphi 2009/2010. . UnicodeString , , typedef WideString Delphi 2007 .

. delphi 2010 Windows Vista Windows 7, - . Delphi 2009 2010 , Delphi 2007 Delphi 7 .

Vista Win7, 100% , TNT, , , . , , . Delphi 2010 2009 delphi, , Delphi 7 , WinHelp.

+13

Source: https://habr.com/ru/post/1724446/


All Articles