Apologies for asking a (probably) common newbie question.
I maintain a largish (250 forms - c450,000 lines of code, non-database
using) Delphi 5 application. It reads and writes to MS Office
applications using COM.
I've been asked what would be involved to convert it to work with
Unicode. The app code uses standard ref-counted Strings throughout
and does large amounts of text processing. AFAICR it uses standard
VCL components or ones derived directly from them.
I don't really understand the parameters of the problem and I'd
appreciate some pointers as to how best to approach this.
Many thanks
Richard
I've been doing a bit of research in this area myself, and I've come
to the conclusion that --
If you're trying to convert Delphi 5 to unicode -- STOP.
Yes, it can be done -- it's possible -- but I haven't found any EASY
way to do it.
I've downloaded components from the web that purport to have unicode
support -- and they don't compile. (They *might* compile in Delphi
*6*).
So just break down and shell out the money needed to get the latest
version of Delphi, which already has unicode support. It'll be
cheaper than expending the manhours necessary to shoehorn unicode into
Delphi 5. And you'll have an up-to-date development tool for future
use.
NOW -- I'll be very very happy if someone here can tell me I'm wrong.
Adding unicode to Delphi 5 would certainly be easier than converting
everything to Java, and save you from needing to buy the latest
version of Delphi. Note that I may use "easy" and "cheap"
interchangeably, because after all, if it takes a long time to do, it
ain't neither.
Best of luck!
<:-)
Many thanks for the info.
But... DOES the latest version of Delphi actually have full Uncode
support?
I seem to be reading that neither Delphi 2006 or 2007 do that with
VCL.
Hmmmm -- I didn't do *enough* research --
Apparently, the latest does *not* have native unicode support -- (and
it appears a number of people have complained about that)
BUT -- TntWare has unicode components for Delphi, and although I can
testify that they *won't* compile in Delphi 5 (even though they claim
to -- but hey, Delphi 5 is 10 years old now) -- I've seen various
references to their specific product, always positive, so it will
*probably* work with Delphi 6 on up.
http://www.tntware.com/delphicontrols/unicode/downloads.htm
Take heed -- I can not vouch for anything I haven't tried. However, I
think you ought to be able to get a free download trial version of
Delphi, then download the free Tnt stuff, and try it out.
As for myself, it appears my company is just going to switch to Java
for anything that requires international characters.
Hope that's helpful.
well about tnt they have version which compiles with delphi 5 and it
works fine :) just don't forget to convert strings to widestrings!
good luck
Well -- maybe it did for you -- for me, it kept needing components
that I didn't have and couldn't find, and it wouldn't compile without
'em. Never even got to the point where I could add strings of any
sort.
We just don't have the time to debug the documentation and/or the
setup, particularly since it appears to have been "EOL'ed" anyway.
We're just going to use Java for our unicode apps, since it's already
there.
<:-(