The components provided by Borland are called third-party components:
installation method:
Introduce the installation method of various forms of components of common forms.
1 There is only one component of a DCU file. The DCU file is a compiled unit file. Such components do not want to announce the source code. In general, the author must indicate which version of this component is suitable for Delphi, if the version is wrong, there will be an error when installing. It is also because there is no source code, it is inconvenient to the user, that is, once the Delphi version is upgraded, this component can no longer use, and the author gives several versions of DCU files, and users choose to use. The installation method of such components is: In the Component menu, select Install Component, in the dialog
In the INTO EXISTING PACKAGE page, click "Browse" button after "Unit File Name", in the open file dialog box, set the file type to * .dcu, find the DCU file you want to install, Press the OK button to return to the "INTO EXISTING PACKAGE" page and press the OK button to install it. Note that at this time, Delphi will prompt dclusr40.dpk will be rebuilt, whether to continue, OK is OK. Here is to install the components into the DCLUSR40.DPK package, this package can be seen from the file name as a user-defined component package, first install it to this package, then talk about the precautions. After installation, there will be prompt information that has been registered with components and information in which component page is installed, etc., to the component panel, usually there is a new component page, where there is a component that is just installed.
2, only the PAS file or the components of the DCU files with existing PAS. This component has a PAS file, that is, the author provides the source code, which is better. The installation method is the same, and in the file type can be set to the DCU or set to PAS. It is recommended to set it to PAS, so you can use your Delphi to recompile, see if there is a problem. Delphi can only select the PAS file installation after the upgrade, so that the component can adapt to the new Delphi version. Such components are very worthwhile, according to the experience of the cardon, there is no source of components, one is the problem that the Delphi version cannot be used, and the user cannot debug the component after the program has problems. It is a bug in the component.
3, component pack with DPK files. Component packs with DPK files are generally made in multiple components, that is, multiple components are used after installation. If only one component author generally does not make a DPK file, it is possible to publish it. . For such component packs, generally there will be detailed installation documents, as mentioned above, the complicated components are complex and installed, the author does not provide the installation instructions that the user cannot install correctly. If there is no installation file, then install it below: Under the File menu, select "Open ..." to open the DPK file (Select * .dpk in the file type list box), in the Package window appearing, there is an install button on the toolbar. Press this button to install. If the Install button is in an invalid state, then press the Compile button, which is generally compiled, and the install button will be active, then press the install button again.
4, component pack with BPL files. Generally, this is also a component package consisting of a variety of components, which is actually a dynamic connection library file (DLL). The installation method for this component package is: Select "Install Packages" under the Component menu, and then click the Add button, find the corresponding BPL file in the open file dialog, you can click the OK button. . 5, the installation of the ActiveX control. To install such controls, you need to register with Regsvr32.exe first, then select the Import ActiveX Control item in the Component menu. In the window opened in the Import ActiveX Control, only the registered ActiveX control appears in the list, select one and press the install button to be installed. If you don't use regsvr32.exe in advance, you can find an OCX file instant registration with the Add button. After registering, you will be installed.
Some explanations:
1 See if there is an explanation file after getting the component, generally how to install guidance in the documentation, some of which will have the properties, events, methods of the components, and these instructions for use, which is very important.
2 Before the component (package) installation operation, it is best to copy * .bpl to your system directory, will * .pas, *. Dcu, *. Dcr, *. Dp? Copy to Delphi's lib directory Again.
3 When we mentioned the installation of the DCU component, the existing dclusr40.dpk, of course, you can also choose to install it into a new package, if you choose a new package, you need to take a name, such as Demo, and the user after installation. You can find DEMO.BPL, and you can't find Demo.dpk. If you have installed a component into the dclusr40.dpk, you still want to install a component, if you are installed in DClusr40.dpk, you get prompts after installation, the component installed has been canceled, you will not be able to use . This is not the installation of one component? Unless you install it to a new package, you can use both components simultaneously. Of course, each of the new BPL files installing a new BPL is not repaid, but the BPL file adds a lot. Can you install a few components more in dclusr40.dpk? Of course it is possible. The method is as follows: Use the Open under the File menu to open the DClusr40.dpk file, click the Add button, select the Add Unit page in the open dialog box, press the "Browse" button after Unit File Name to open the component unit file, OK, In this way, multiple components can be added, add it, press the compile button, and then press the install button, if the unit file is compiled (DCU) can press the installation button directly.
4 components delete. The light will be installed, but also will delete it. Very simple, under the Component menu, select Install Packages, find the BPL where the installation installed in the list, press the Remove button, OK! I completely remove the BPL file. If you don't delete the BPL file, you can press the method to install the BPL component next time.