码迷,mamicode.com
首页 > Windows程序 > 详细

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

时间:2021-01-12 11:20:38      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:rmi   resources   ike   orm   mini   pen   程序   his   https   

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

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

标签:rmi   resources   ike   orm   mini   pen   程序   his   https   

原文地址:https://www.cnblogs.com/jijm123/p/14259063.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有
迷上了代码!