Using UNICODE strings in Delphi
Last reviewed: 5/30/2001
HOW Article ID: H050105
The information in this article applies to:
- SpeechKit 3
How do I use the UNICODE version of the components in Delphi?
You need the UNICODE version of the VCLs or Pascal wrappers for your code.
The chanta.pas and vchanta.pas files are the Pascal wrappers for the chanta.dll SpeechKit 3 component. They enable you to make functions calls from Delphi using ANSI strings. The current SpeechKit 3 VCLs are ANSI based.
SpeechKit 3 SR1 includes chantw.pas and vchantw.pas files that are the UNICODE Pascal wrappers for the chantw.dll SpeechKit 3 component. They enable you to make functions calls from Delphi using UNICODE strings.
In SpeechKit 3 SR1, the VCL file names have been changed to accommodate ANSI and UNICODE versions: spchkt3a.bpl for ANSI and spchkt3w.bpl for UNICODE.
Do not install both VCL pacakages under Delphi. Install only the applicable version. The UNICODE version is valid only for Windows NT and 2000 systems that need to support wide strings for languages such as Japanese and Chinese.
To install the new VCL, close all Delphi projects and uninstall the current SpeechKit 3 VCLs from your Delphi environment by removing the SpeechKit 3 package. Shut down Delphi. Install SpeechKit 3 SR1. Start Delphi. Then add the SpeechKit 3 SR1 package (spchkt3a.bpl or spchkt3w.bpl) back to Delphi.