Borland Package Library



Go Up to Working with Packages and Components Index

Now includes Delphi interface units (source) and build instructions for using the free Borland C compiler. If you are interested in using the library for reading or writing PNG files in your own programs, I have described how it is built and used. Earlier version Download original PNG Library, V1.0.1, lpng.zip, 94561 bytes (1999 May 03). This section discusses packages and how they are used both in applications and by the IDE. The term package refers specifically to a source module with the.bpk extension (Borland Package) and more generally to a Borland Package Library (BPL) file (.bpl extension) that is created when the Package is built. Borland Package Import BPI file is a Borland Package Import. It is an import library for a Delphi or CBuilder package. When you are compiling for the Mac OS X target platform, you can link with a.bpi file, but the file you deploy on the Mac is a.dylib file.

A package is a special dynamic-link library used by applications, the IDE, or both. Run-time packages provide functionality when a user runs an application. Design-time packages are used to install components in the IDE and to create special property editors for custom components. A single package can function at both design time and run time, and design-time packages frequently work by calling run-time packages. To distinguish them from other DLLs, package libraries are stored in files that end with the .bpl (Borland package library) extension.

Like other run-time libraries, packages contain code that can be shared among applications. For example, the most frequently used VCL components reside in a package called vcl . Each time you create a new default VCL application, it automatically uses vcl. When you compile an application created this way, the application's executable image contains only the code and data unique to it; the common code is in the run-time package called vcl270.bpl. A computer with several package-enabled applications installed on it needs only a single copy of vcl270.bpl, which is shared by all the applications and the IDE itself.

BorlandBuilder

Uf Health Borland Library

Borland Package Library

Borland Package Library Software

Several run-time packages encapsulate VCL components while several design-time packages manipulate components in the IDE.

You can build applications with or without packages. However, if you want to add custom components to the IDE, you must install them as design-time packages.

You can create your own run-time packages to share among applications. If you write Delphi components, you can compile your components into design-time packages before installing them.

See Also

  • Understanding the Structure of a Package
  • Deploying Packages
Retrieved from 'http://docwiki.embarcadero.com/RADStudio/Sydney/e/index.php?title=Working_with_Packages_and_Components_-_Overview&oldid=242272'