坤 大 - Migrate the components of the for BCB5 to BCB6

zhaozj2021-02-08  270

坤 大 - Migrating the Components of the For BCB5 into BCB6, everyone knows that BCB6 has come out for a while, and has greatly improved in terms of stability and ease of use. In particular, network features, such as webserver, SNAP, etc. provide a very convenient development method. Many friends may have eager to try, there is a very important reason to prevent them from using the BCB6, that is, the previous family has collected a lot of for BCB5 components when using BCB5, but there are many components that do not prompt for BCB6. version. My god, my ehlib, mwedit, strcon ......., many friends have tried to recompile the original components under BCB6, and will always have the compilation and failure, is the BCB6 does not compatible down? ? No, as long as you have source code, it is theoretically to migrate any components of the FOR BCB5, but you need some small changes to the original code. Now I have an example of a very classic component mwedit 0.92: 1. DSGnintf.Pas has been canceled in the Toolsapi directory in BCB6, and the code in dsgnintf.pas is dispersed into the Designintf, Designeditors, VCLITORS unit, so you want will

DSGnintf in MweditPropertyReg.Pas is replaced with Designintf, Designeditors, VCLDITORS

2. Generate "Can't find DesignInTf.dcu when compiling BPK, Designeditors.dcu

, Vcleditors.dcu error ". Help, you will create a new project, add DESIGNTF.PAS, DESIGNETORS, PAS, VCLDITORS.PAS in the Toolsapi directory to the project, you can generate the corresponding DCU, OBJ file , Copy the generated DCU, OBJ file

In the lib / OBJ directory under BCB6.

3. When compiling BPK, "You cannot find a proxies.obj error, but Borland does not provide Proxies.Pas unit, we can't generate the proxies.obj file, what should I do? In fact, there is no need for a proxies.obj file because it has been in BCB6. Compile the proxies.obj code into designide.bpi (DEPHI6 in Designied.dcp). So adding DesignIDE.BPI in Requires in the BPK project.

4. It is finally available! ! Don't, if the program uses the control in Mwedit, an error occurs when compiling, because the constant WM_MouseWheel in mwcustomedit.hpp has conflicts with the system, so putting the Static const3 WM_MouseWheel = 0x20a in mwcustomedit.hpp; this line is coming off .

This is a typical example. When you use other components, it can be changed according to the error information. I wish you all a happy time.

Note: Mwedit is a good EDIT component, providing SQL, C , Delphi and other syntax highlights, and is completely free, but unfortunately, the author only provides version of the FOR BCB34, if you can directly compile directly in BCB5, BC6 will be more expensive. ^ _ ^. Everyone can

To go to the "Haikong Sky" website to download the Mwedit 0.92 version

转载请注明原文地址:https://www.9cbs.com/read-2184.html

New Post(0)