Third-party control installation method

Source: Internet
Author: User

Components not provided by Borland are called third-party components:
Installation Method:
This section describes how to install common components.

1 only has one DCU file component. The DCU file is a compiled unit file. The author does not want to publish the source code. In general, the author must explain which edition of this component is suitable for Delphi.
If the version is incorrect, an error occurs during installation. It is precisely because there is no source code that makes it inconvenient for users. That is, once the Delphi version is upgraded, this component cannot be used any more.
Users provide several versions of DCU files. You can choose to use them as needed. To install such components, select install
Component, in the dialog box
On the "into existing package" page, click "unit file
Click "Browse" after name. In the open file dialog box, set "file type" to *. DCU, find the DCU file to be installed, and press OK to return "".
Existing
On the package page, click OK to install the package. Note: At this time, Delphi will prompt that dclusr40.dpk will be rebuilt. If you want to continue, OK. Here is the component
Install the package to the dclusr40.dpk package. The package can be seen from the file name as a user-defined component package. install it in this package first. Next, let's talk about the precautions. After the installation is complete, the component has been added.
The prompt information and the information on which the component is installed are displayed on the component panel. A new component page is displayed, including the newly installed component.

2,
Only the PAS file or a component that has both the PAS and DCU files. This component has a PAS file, that is, the author provides the source code, which is much easier. The installation method is the same as above.
You can set the type to DCU or pas. We recommend that you set it to PAS so that you can recompile it with your Delphi to see if any problem occurs. You can only select
The PAS file can be installed so that the component can be re-compiled to adapt to the new Delphi version. Such components are worth using. Based on the experience of xinling, it is best not to use components without source code.
After the upgrade of the Delphi versionProgramAfter a problem occurs, you cannot debug the component to determine whether the component contains a bug.

3. component packages with dpk files. A component package with a dpk file is generally composed of multiple components. That is to say, multiple components will be available after installation. If only one component author is generally not made into a dpk
File, you can use the above method to publish it. For such a component package, there will generally be a detailed installation instruction file, as mentioned above rxlib, due to the complex components and the order of installation, the author
If no installation is provided, the user cannot install it correctly. If there is no installation instruction file, use the following method to install it: Under the File menu, select "Open ..." Open the dpk file (file type list
Select *. dpk). In the displayed package window, there is an install button on the toolbar. Click this button to install the package. If the Install button is invalid
Compile by pressing the compile button. Generally, the Install button is in a valid state after compilation, and then press the Install button.

4,
Package with BPL files. Generally, this is a component package composed of multiple components. It is actually a dynamic connection library file (DLL ). The installation method of this package is as follows:
Select "Install" under the component menu
Packages, and then click Add. In the open file dialog box, find the BPL file to open and return, and then click OK.

5. Install ActiveX controls. To install such a configuration, register it with regsvr32.exe, and select import ActiveX from the component menu.
Control. In import ActiveX
In the control window, only registered ActiveX controls are displayed in the list. Select one and click the Install button to install the ActiveX control. If not
Regsvr32.exe registration can also be found by clicking the Add Button OCX file real-time registration, registration before installation.

Notes:

1. check whether there is a description file after obtaining the component. Generally, there are instructions on how to install the component in the description file, and some instructions on how to use the attributes, events, and methods of the component, these are important in use.

2. Before installing the above components (packages), You 'd better set *. copy BPL to your system directory and copy *. pas ,*. DCU ,*. DCR ,*. DP? Copy it to the lib directory of Delphi before proceeding.

3 As mentioned above, when installing the DCU component, we chose the existing dclusr40.dpk. Of course, you can also choose to install it to a new package. If you select a new package, you must first obtain a name ratio.
For example, after the demo is installed, you can find demo. BPL, but not demo. dpk. If you have installed a component in dclusr40.dpk,
You want to install another component. If you install it again in dclusr40.dpk, you will be prompted that the previously installed component has been canceled and you will not be able to use it. In this way
Is a component installed? The two components can be used at the same time unless you install them in a new package. Of course, every time you install a component to generate a new BPL file, there is no way to do it, but the BPL file is much more.
Can I install several more components in dclusr40.dpk? Of course. To open the dclusr40.dpk file, click Add.
Button, select the Add Unit page in the displayed dialog box, and Press Unit File
Click the "Browse" button after name to open the component unit file and click OK. In this way, you can add the unit files of multiple components. After adding the component, click the compile button and then press
Install button. If the unit file is compiled (DCU), you can directly press the Install button.

4
Delete a widget. It can only be installed, but it will also be deleted. Simple. Under the component menu, select install
Packages, find the BPL in which the installation is located in the list, and press the Remove button. OK! Delete the BPL file. If you do not delete the BPL file, you can install BPL
Component method before installation and use

(Source: www.delphibbs.com)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.