How do I develop C++Builder and Delphi applications that manage grammars?
Last reviewed: 9/1/2010
HOW Article ID: H110805
The information in this article applies to:
- GrammarKit 3
Summary
GrammarKit 3 includes VCLs to support C++Builder and Delphi from Embarcadero.
More Information
One of the major enhancements to C++Builder and Delphi 2009 is the use of Unicode character set as the default. Since GrammarKit is already Unicode-based, the new VCL12 and later versions eliminate the need to convert strings to and from Unicode.
Since VCL component libraries are release dependent, you need to ensure you select the appropriate VCL version of C++Builder and Delphi that you use.
For C++Builder, select your version using the following table.
C++Builder Release | VCL Version |
---|---|
C++Builder 5 | VCL5 |
C++Builder 6 | VCL6 |
C++Builder 2006 (Borland Developer Studio 2006) | VCL10 |
C++Builder 2007 (RAD Studio 2007) | VCL11 |
C++Builder 2009 (RAD Studio 2009) | VCL12 |
C++Builder 2010 (RAD Studio 2010) | VCL14 |
C++Builder XE (RAD Studio XE) | VCL15 |
Configure your C++Builder system to use the Chant GrammarKit VCL Component Library with the following steps:
- copy the DCGrammarKit.DLL, grammarkit3.bpl, and grammarkit3.res files from the Program Files\Chant\GrammarKit 3\Win32 Developer\CBuilderVCL\VCLX\bin directory where X is the VCL version to your Embarcadero (CodeGear, Borland) CBuilder bin directory (e.g., C:\Program Files\Borland\CBuilderX\bin directory where X is the CBuilder version, or to the BDS bin directory C:\Program Files\CodeGear\RAD Studio\BDS\X.0\bin or C:\Program Files\Embarcadero\RAD Studio\BDS\X.0\bin where X is the version number);
- copy the grammarkit3.bpi, grammarkit3.lib, and tchantgm.res files from the Program Files\Chant\GrammarKit 3\Win32 Developer\CBuilderVCL\VCLX\lib directory where X is the VCL version to your Embarcadero (CodeGear, Borland) CBuilder lib directory (e.g., C:\Program Files\Borland\CBuilderX\lib directory where X is the CBuilder version, or to the BDS lib directory C:\Program Files\CodeGear\RAD Studio\BDS\X.0\lib, C:\Program Files\Embarcadero\RAD Studio\BDS\X.0\lib, or C:\Program Files\RAD Studio\Embarcadero\BDS\X.0\lib\win32\release where X is the version number);
- copy the chantgm.hpp file from the Program Files\Chant\GrammarKit 3\Win32 Developer\CBuilderVCL\VCLX\Include\Vcl directory where X is the VCL version to your Embarcadero (CodeGear, Borland) CBuilder Vcl directory (e.g., C:\Program Files\Borland\CBuilderX\Include\Vcl directory where X is the CBuilder version, or to the BDS Vcl directory C:\Program Files\CodeGear\RAD Studio\BDS\X.0\Include\Vcl, C:\Program Files\Embarcadero\RAD Studio\BDS\X.0\Include\Vcl, or C:\Program Files\Embarcadero\RAD Studio\BDS\X.0\include\windows\vcl where X is the version number);
-
install the Chant GrammarKit 3 VCL components:
- select the CBuilder Components Install Packages menu item;
- click the add button;
- locate the grammarkit3.bpl located in your Embarcadero (CodeGear, Borland) CBuilder lib directory (e.g., C:\Program Files\Borland\CBuilderX\lib directory where X is the CBuilder version or the BDS lib directory C:\Program Files\CodeGear\RAD Studio\BDS\X.0\lib, C:\Program Files\Embarcadero\RAD Studio\BDS\X.0\lib, or C:\Program Files\RAD Studio\Embarcadero\BDS\X.0\lib\win32\release where X is the version number); and
- click the OK button.
C++Builder VCL sample projects are installed at [My] Documents\Chant GrammarKit 3\CBuilderVCL\VCLx where x is the VCL version compatible with your C++Builder version.
For Delphi, select your version using the following table.
Delphi Release | VCL Version |
---|---|
Delphi 6 | VCL6 |
Delphi 7 | VCL7 |
Delphi 2005 | VCL9 |
Delphi 2006 (Borland Developer Studio 2006) | VCL10 |
Delphi 2007 (RAD Studio 2007) | VCL11 |
Delphi 2009 (RAD Studio 2009) | VCL12 |
Delphi 2010 (RAD Studio 2010) | VCL14 |
Delphi XE (RAD Studio XE) | VCL15 |
Configure your Delphi system to use the Chant GrammarKit VCL Component Library with the following steps:
- copy the DCGrammarKit.DLL file from the Program Files\Chant\GrammarKit 6\Win32 Developer\DelphiVCL\bin directory to your Embarcadero (CodeGear, Borland) Delphi bin directory (e.g., C:\Program Files\Borland\DelphiX\bin directory where X is the Delphi version, or to the BDS bin directory C:\Program Files\CodeGear\RAD Studio\BDS\X.0\bin or C:\Program Files\Embarcadero\RAD Studio\BDS\X.0\bin where X is the version number);
- copy the GrammarKit VCL files from the Program Files\Chant\GrammarKit 6\Win32 Developer\DelphiVCL\VCLX\lib directory where X is the VCL version to your Embarcadero (CodeGear, Borland) Delphi lib directory (e.g., C:\Program Files\Borland\DelphiX\lib directory where X is the Delphi version, or to the BDS lib directory C:\Program Files\CodeGear\RAD Studio\BDS\X.0\lib, C:\Program Files\Embarcadero\RAD Studio\BDS\X.0\lib, or C:\Program Files\RAD Studio\Embarcadero\BDS\X.0\lib\win32\release where X is the version number);
-
install the Chant GrammarKit 6 VCL components:
- select the Delphi Components Install Packages menu item;
- click the add button;
- locate the speechkit6.bpl located in your Embarcadero (CodeGear, Borland) Delphi lib directory (e.g., C:\Program Files\Borland\DelphiX\lib directory where X is the Delphi version, the BDS lib directory C:\Program Files\RAD Studio\CodeGear\BDS\X.0\lib, C:\Program Files\RAD Studio\Embarcadero\BDS\X.0\lib, or C:\Program Files\RAD Studio\Embarcadero\BDS\X.0\lib\win32\release where X is the version number); and
- click the OK button.
Delphi VCL sample projects are installed at [My] Documents\Chant GrammarKit 3\DelphiVCL\VCLx where x is the VCL version compatible with your Delphi version.