ICode9

精准搜索请尝试: 精确搜索
首页 > 编程语言> 文章详细

确定要包含的Delphi运行时程序包(Determining Delphi Runtime Packages to Include)

2021-01-10 18:33:54  阅读:248  来源: 互联网

标签:packages 程序包 Delphi list BPL DLL Include


I have a Delphi DLL that houses a form which uses a variety of third party components. This DLL is used by many different versions of Delphi. I compile the third party components into the DLL. I believe I still need to link to some "base" Delphi packages like rtl, vcl, etc, so my DLL will use the same memory manager and other global resources that the Delphi IDE is using. How do I find out what BPLs I need to link to?

Ideally I'd like to point some utility at my DLL or project and have it list every BPL that it would depend on if I was only using BPL's and had no source files available. Then I could view that list and pick the packages I want to load at runtime. The current list given in the project properties under "Runtime Packages" is incomplete (as it has been tweaked over the years).

解决方案

Check the "Build with Runtime Packages", leaving the whole list of packages the way it is.

Do a Project|Build (not compile!). After the build completes, use Project|View Information on ; the resulting dialog will give you a list of the actual packages you need to distribute.

After Jeremy's comment about the default list of packages being empty when he enables building with packages, here's the list from that options dialog from Delphi 2010:

   vclx;vcl;vclimg;dbrtl;Rave77VCL;bdertl;rtl;vclactnband;xmlrtl;
   vcldb;vcldbx;vcltouch;dsnap;dsnapcon;TeeUI;TeeDB;Tee;vclib;
   ibxpress;adortl;IndyCore;IndySystem;IndyProtocols;inet;
   intrawebdb_100_140;Intraweb_100_140;VclSmp;vclie;inetdb;
   webdsnap;websnap;inetdbbde;inetdbxpress;soaprtl;vclribbon;
   DbxCommonDriver;DbxClientDriver;DBXInterBaseDriver;DBXMySQLDriver;
   dbexpress;dbxcds;SynEdit_R2009
 

我有一个Delphi DLL,其中包含使用各种第三方组件的表单。许多不同版本的Delphi使用此DLL。我将第三方组件编译到DLL中。我相信我仍然需要链接到一些"基本" Delphi程序包,例如rtl,vcl等,因此我的DLL将使用Delphi IDE使用的相同的内存管理器和其他全局资源。我如何找出需要链接的BPL?



理想情况下,我想将一些实用程序指向我的DLL或项目,并让它列出每个依赖于我仅使用BPL而没有源的BPL。可用文件。然后,我可以查看该列表并选择要在运行时加载的软件包。项目属性在"运行时程序包"下给出的当前列表不完整(由于多年来的调整)。


解决方案  

检查"使用运行时程序包进行构建",使程序包的整个列表保持原样。



执行一个Project | Build(不编译!)。构建完成后,使用Project | View Information on;



在杰里米(Jeremy)启用了使用软件包构建功能的默认软件包列表为空后,他发表了评论,以下是Delphi 2010中该选项对话框中的列表:



  vclx; vcl; vclimg; dbrtl; Rave77VCL; bdertl; rtl; vclactnband ; xmlrtl; 
vcldb; vcldbx; vcltouch; dsnap; dsnapcon; TeeUI; TeeDB; Tee; vclib;
ibxpress; adortl; IndyCore; IndySystem; IndyProtocols; inet;
intrawebdb_100_140; Intraweb_100_140; VclSmp; vclie; inetdb;
webdsnap; websnap; inetdbbde; inetdbxpress; soaprtl; vclribbon;
DbxCommonDriver; DbxClientDriver; DBXInterBaseDriver; DBXMySQLDriver;
dbexpress; dbxcds; SynEdit_R2009

标签:packages,程序包,Delphi,list,BPL,DLL,Include
来源: https://www.cnblogs.com/jijm123/p/14259063.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有