|
Title:
|
Unicode tip #11 - Stringchecks Off
|
Author:
|
Bob Swart |
Posted:
|
12/18/2008 5:21:55 PM
(GMT+1)
|
Content:
|
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:
(*$STRINGCHECKS OFF*) 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 Lulu.com.
|
Back |
|