如何在 C++ Builder 4.0 中创建 BPL 文件?

How to create a BPL file in C++ Builder 4.0?

拜托,你能帮帮我吗?如何在 C++ Builder 4.0 中创建 BPL 文件?我尝试创建但我只得到 lib 文件而不是 BPL?

如果我没记错的话,我现在面前没有Borland C++Builder4,但是

您需要创建项目新的 Borland 包,.bpk 扩展名。在你决定构建过程应该产生什么之后,你将得到 .bpl 文件,Borland Package Library。如果你想要双包运行时和设计时,你需要检查适当的 IDE 选项,无论如何,如果你不需要设计时包,你将需要在链接时使用 .bpi。

回顾(主要是为了我自己):

bpi - A Borland package import library. A .bpi is created for each package.  
bpk - The project options source file.  
bpl - The runtime package. This file is a Windows .dll with special -specific features.
      The base name for the .bpl is the base name of the .bpk.  

以下是如何使用一个自定义组件创建包的示例:

  1. File\New\Package
  2. 添加
  3. 新组件
  4. Select 祖先和你的 class 名字以及想要的调色板页面
  5. 全部保存 - "Package1.bpk"
  6. 右键单击包含并select构建
  7. 然后点击安装