Delphi Clinic C++Builder Gate Training & Consultancy Delphi Notes Weblog Dr.Bob's Webshop
Bob Swart (aka Drs.Bob) Dr.Bob's Delphi Clinics Dr.Bob's Delphi Courseware Manuals
View Bob Swart's profile on LinkedIn Drs.Bob's Delphi Notes
These are the voyages using Delphi Enterprise (and Architect). Its mission: to explore strange, new worlds. To design and build new applications. To boldly go...

Unicode tip #11 - Stringchecks Off

Author: Bob Swart
Posted: 12/18/2008 5:21:55 PM (GMT+1)

A final Unicode tip concerns the compatibility of UnicodeStrings between Delphi and C++Builder.
The UnicodeString in Delphi can containUnicode or ANSI data at any given time, and in order to ensure that C++Builder code can correctly index the items, a hidden call to UniqueStringX is being made. This is only needed for C++Builder code that uses a Delphi package for example.

If you only create Delphi stand-alone applications, you can avoid these calls with the STRINGCHECKS OFF compiler option:

Apart from this compiler option, you can also pass this option to the command-line compiler using the “—string-checks:off” option.
The resulting executable will be slightly faster, but no longer compatible with C++Builder.

This tip is the 11th in a series of Unicode tips taken from my Delphi 2009 Development Essentials book published earlier this month on


No Comments, yet.

New Comment (max. 2048 characters, no HTML):


This webpage © 2005-2014 by Bob Swart (aka Dr.Bob - All Rights Reserved.