"Delphi Basics" at Delphi 2009

Has anyone used / converted "Delphi Basics" in Delphi 2009? - http://fundementals.sourceforge.net/

I use dictionaries (cArrays.pas, cDictionaries.pas, cStrings.pas, cTypes.pas) in my project, and now I have some problems updating the code.

I will be very grateful if anyone can convert the above units into Delphi 2009. I am new to Delphi, started working in 2007 and 2009, I just can not help myself ...

thanks

+6
unicode delphi delphi-2009
source share
2 answers

I am using cUtils, cDateTime and cStrings in a project.

After a 30-minute search and replace session as crazy, I forced them to compile in Delphi 2009, and there were only a few warnings. [/ p>

  • Char → AnsiChar
  • Line -> AnsiString
  • PChar → → PAnsiChar
  • PString → → PAnsiString

He transfers all his planes, and so far everything is working fine. I shared it here: http://www.xs4all.nl/~niff/Fundamentals_UtilsD2009.zip

Update I added ported cDataStructs.pas to the zipfile that contains the dictionary classes. This still has a lot of compiler warnings that you can fix, but skip the self test so you can try and see if it works for you.

+7
source share

There is no official version of the Delphi Foundations for D2009 (and I think they will never be).

I think it would be better to rewrite the dictionary code using the TDictionary<TKey,TValue> for Delphi-native TDictionary<TKey,TValue> , or using delphilhlplib ( Collections / DeHL.Collections.Dictionary.pas ).

+3
source share

All Articles