如何从 VCL 重新编译特定单元? [英] How to recompile a specific unit from the VCL?

查看:26
本文介绍了如何从 VCL 重新编译特定单元?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将 QC 的修复应用到 Delphi 2009 单元(发生时为 DBClient).我知道我需要将单元复制到另一个目录并对副本进行更改.然后我如何让 Delphi 编译该单元并使用它来支持已经存在的 DCU?

I want to apply a fix from QC to a Delphi 2009 unit (DBClient as it happens). I know I need to copy the unit to another directory and make the change to the copy. How do I then get Delphi to compile that unit and use it in favour of the DCU that already exists?

推荐答案

如果你不想修改原来的 .Pas 文件,我把 .Pas 文件复制到我的应用程序文件夹中,然后选择构建的项目,它将在我的应用程序文件夹中创建新的 dcu 文件,该文件将用于代替原始文件.

If you don't want to modify the original .Pas file, I do this by copy the .Pas file into my application folder, then choose built project, it will create new dcu file in my application folder, which will be used instead of the original one.

这篇关于如何从 VCL 重新编译特定单元?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆