Delphi control installation

xiaoxiao2021-03-06  99

Delphi control installation (more complete)

Since the components are provided different, the mounting method is also different, and the installation method of the currently common forms of components is now introduced. 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 "INTO EXISTING PACKAGE" page in the dialog, click the "Browse" button after "Unit File Name", on the open file dialog In the "file type" set to * .dcu, find the DCU file you want to install, press the OK button to return "INTO EXISTING PACKAGE" page, 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).

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

New Post(0)