ansistring

Converting Integer value into AnsiString in Delphi 2009

IntToStr() function returns string which is Unicode now. I want converting to AnsiString. Can I use AnsiString(IntToStr(I)) safely? ...

Transition to Unicode for an application that handles text files

My Win32 Delphi app analyzes text files produced by other applications that do not support Unicode. Thus, my apps needs to read and write ansi strings, but I would like to provide a better-localized user experience through use of Unicode in GUI. The app does some pretty heavy character-by-character analysis of string in objects descend...

AnsiString return values from a Delphi 2007 DLL in a Delphi 2009 application

I have a DLL compiled with D2007 that has functions that return AnsiStrings. My application is compiled in D2009. When it calls the AnsiString functions, it gets back garbage. I created a little test app/dll to experiment and discovered that if both app and dll are compiled with the same version of Delphi (either 2007 or 2009), there i...

Dll built in Delphi 2010/2009 not compatible to Delphi 7 when an Exception is raised.

Hello guys, I've built a dll in Delphi 2010 and it's consumed in my delphi 7 application. I'm aware of the unicode AnsiString / string matter and according to my tests everything works fine up to the moment that no exception is raised by my delphi 2010 dll. The fact is, is there any special/treated exception that is compatible to the...