|
BCB Notes |
Top Previous Next |
|
Installation
We added BPK files which can be compiled in C++Builder as packages. If there is a problem (Your setup is different than on the reference machine) you can install the file WPTools_Reg.PAS as a new component into a new package.
You will have to add the vcl and vclx package - otherwise the message "filename.obj was not found" will be displayed.
Please make sure the VCLJPG and DSNIDE packages are added. For database support VCLDB is also required. If you have BCB-Standard you can activate the switch NODB in the file WPINC.INC
You will also need to make a change to the 'Option Source', the XML makefile for the package:
When C++Builder compiles the RTFEngine it creates HPP files.
Programming
In general you can use the same techniques in BCB as you use in Delphi
But please note that the dot '.' usually has to be replaced by the arrow '->' to access any objects.
Instead of Txx.Create you usually use new.
Procedures can be called without () in Delphi, for C++ please always add ().
Speciality: Instead of TWPCustomRTFEdit.CreateDynamic use edit = new TWPCustomRTFEdit(nil); edit._MakeDynamic();
Troubleshooting:
If you get a linker error 'unresolved external' please make sure the WPTools units are found, but only one time (no duplicates), in the library and in the include path. Please deactivate the use of runtime packages.
|