First, installation steps:
1, to get the source code, to all the source code, not that only part of the source code package.
2, find BPK files, if only dpk files, then use the DPK2BPK program (download online) to generate a BPK file, if the build fails, then create a new package (BPK or bdsproj), the dpk file contains the Pas file included.
3, compile and install.
Second, Attention matters:
1, BPL packet name problem, the main is not duplicate, in Borland and System32 to find the package to install the names, if found all deleted.
2, file name problem,. Pas.h.hpp.dcu.obj.lib.bpl.bpi.dfm.res and other documents should not have duplicate name, if there should be deleted old version of the file. Here is an introduction to the software to complete this work beyond Compare, whose homepage is http://www.scootersoftware.com/
3, file path settings, compile lookup path, link to find the path of the library file, BCB2006 path set will be a little more, the Bcc32 Dcc32 ilink32 tasm32, such as separate settings, these should be set correctly, and pay attention to the first order of the compiler's influence. These 3 points should be remembered at all times, out of the question to verify the correct. Don't let yourself get bogged down by these problems, it's not worth it.
Common mistakes in compiling links and debugging methods
1, could not find obj or DCU file. See if there's a file on your hard drive, if that's the path of the second step.
2, if the file is not added to the project, it will not generate the link required obj and lib file. Pay attention to the order in which you compile multiple packages.
3, compile switch control files, control package code in the compiler switch is generally placed in a file (. inc), if the Pas suffix, please change your name. Similar to the following code, if installed under BCB2006, you need to modify the file yourself.
{$IFDEF VER180}//if compiled with BDS2006
{$IFDEF BCB}//bcb2006
{$DEFINE VER140}//So use B6 the same compiler switch
{$ELSE}//delphi2006
{$DEFINE VER170}//So use D9 the same compiler switch
{$ENDIF}
{$ENDIF}
The correct compile switch is required to compile correctly. How to change, it depends on the specific documents to do, this is generally not difficult to change.
4, about designeditors This unit problem, the use of DCP documents.
In BCB2006, if the PAS code contains this designeditors unit, it will cause the compilation to fail because BCB2006 does not provide all the source code required by designeditors, and it will be prompted to say that the file is not found Proxie. But there are ways to install it. The solution is to pass the. DCP (Delphi Compiled Packages) file:
In Project options-Pascal Compiler (DCC32)-The other Options page, there is a use package. DCPS when compling, select it and fill in the name of the. DCP file that you want, Designeditors is needed. DCP name is designide (just fill in the name on it, do not add the prefix name OH), fill in the desired DCP file, designeditors problem can be solved.
In BCB6, the DCP file is added to the project, or the corresponding LIB file is specified for the connection.
5, the code in the compilation error
This refers to a control installed in B2006, because the control does not have for 2006, so there is this problem, over time control upgrades, there is no such problem.
This can only be seen in the recruit, there is no other way. If the variable in Rxlib has the same name as the B2006 Tcontrol new attribute, the increase in the Tfieldtype type in 2006 in Ehlib will increase the corresponding match.