Delphi BPL, DCP, DCU file meaning (BPL equivalent to C + + DLL,DCP equivalent to Lib in C + +, compile-time required)

Source: Internet
Author: User

BPL English full name Borland Package library is a special DLL file that is used for code reuse and for reducing executables. When compiling BPL, you only need to add the appropriate PAS file for the feature, and if you have a form, you need to add the DFM file. Since it is a DLL file, that is the file that is required at run time. BPL equivalent to DLLs in C + +

DCP English full Name: Delphi compiled package, is the package compiled with BPL produced, recording the package in the public class, procedure, function, variable, const .... And so on the names and relative addresses. If a control package a refers to control package B, when control package a compiles, a control package B.DCP is required, and if the control package B has been modified to change the exposed interface, control package a must be recompiled after the control package B is compiled to reference the new B.DCP. Otherwise, an error occurs when the control package A executes to the content that references the auto-control package B. The DCP is equivalent to Lib in C + + and is required at compile time.

DCU English Full Name: Delphi Compiled unit file, which is a file generated by the Delphi unit files. pas file, does not feel much use.

Delphi Engineering Group Add a DLL and BPL

As shown, add an icon for the DLL and BPL.

At the same time, create a new BPL project, by default, its icon has a gear at the bottom right, indicating that can be installed in the Delphi public directory, right-click Project, there will be the install option. Can be selected in the project Properties-description-runtion only, set the project icon in the lower right corner of the gear can disappear, not installed in the Delphi public directory.

DLLs and BPL rely on the correct use of other BPL

DLL relies on other BPL, project properties-packages-tick build with runtime packages, then enter dependent BPL.
BPL relies on other BPL, right--view source in the keyword requires, input dependent BPL.

Delphi BPL, DCP, DCU file meaning (BPL equivalent to C + + DLL,DCP equivalent to Lib in C + +, compile-time required)

Related Article

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: 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.