• 确定要包含的Delphi运行时程序包(Determining Delphi Runtime Packages to 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
    好的代码像粥一样,都是用时间熬出来的
  • 相关阅读:
    阿里云POLARDB荣膺2019中国数据库年度最佳创新产品
    实时大数据开发难、运维难、应用难?来,一站解决!
    阿里云应用实时监控 ARMS 再升级,支持 Prometheus 开源生态
    一线实践 | 借助混沌工程工具 ChaosBlade 构建高可用的分布式系统
    使用DataX同步MaxCompute数据到TableStore(原OTS)优化指南
    Twitter 宣布抛弃 Mesos,全面转向Kubernetes
    阿里云Kubernetes服务上使用Tekton完成应用发布初体验
    Knative Tracing 介绍
    不断被取代的传统职业:快速发展的智能交互
    bzoj1433: [ZJOI2009]假期的宿舍
  • 原文地址:https://www.cnblogs.com/jijm123/p/14259063.html
Copyright © 2020-2023  润新知