Delphi exe,它可以仅使用 BDE 配置运行吗?
我接管了一个遗留应用程序并创建了 exe。如果我可以配置 BDE,那么理论上应该可以运行它。有人指出需要安装 Delphi 才能运行该应用程序。我不确定这一点 - 这对我来说不太有意义,因为有一个 exe 文件。德尔福专家的任何意见将不胜感激。
罗迪
I've taken over a legacy application and I have the exe created. If I can configure the BDE then in theory it should be possible to run this. Someone indicated that Delphi needs to be installed in order for the app to run. I'm unsure of that - it doesn't quite make sense to me as there is an exe file. Any input from Delphi experts would be appreciated.
Roddy
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
如果应用程序使用 BDE,则必须先安装 BDE,然后才能运行 exe。 BDE 文件未链接到 exe 中。
Delphi 安装通常还会安装 BDE。这可能会给人一种必须安装 Delphi 才能运行 exe 的印象,但事实并非如此。
根据部署许可证,您必须使用 Delphi 附带的 InstallShield Express 之类的东西来为 BDE 创建一些设置,但我在这里可能会被误导。您甚至可以尝试在 google 上搜索 BDE 安装程序或查看此问题。
If the application uses the BDE then the BDE has to be installed before the exe can run. The BDE files are not linked into the exe.
A Delphi installation normally also installs the BDE. This might give the impression that Delphi has to be installed to run the exe, but that is not true.
According to the deployment licence you have to use something like InstallShield Express that comes with Delphi to create some setup for the BDE, but I might be mislead here. You may even try to google for a BDE installer or have a look at this question.
如果您的应用程序不是为使用运行时包(BPL 文件)而构建的,则无需安装 Delphi,您的应用程序就应该可以运行。
如果它是为了使用运行时包而构建的,那么您需要将它们与您的应用程序一起部署。由于delphi的所有运行时包都是随Delphi一起安装的,这可能会给人一种印象,即应用程序需要安装delphi才能运行,但事实并非如此。
然而,您可能需要安装 delphi 来检索所需的 BPL 文件。
BPL 文件是 delphi 可以引用的特殊 DLL 文件,而不是将所有代码链接到 .Exe 中,从而使 EXE 文件小得多。
因此,如果您设法启动 BDE、在其中创建正确的别名并获取所有必需的 BPL(如果有),则应用程序应该正确启动。
最后一个可能需要与您的应用程序一起部署的东西是 midas.dll。 (如果应用程序使用,例如,Tclientdataset)
这就是我现在能想到的......
Your application should work without installting Delphi if it wasn't built to use runtime packages(BPL files).
If it was built to use runtime packages, you'll need to deploy them with your application. Since all delphi's runtime package are installed with Delphi, that may give the impression that installing delphi is required for the application to run, which is not the case.
You might however need to install delphi to retrieve the required BPL files.
BPL files are special DLL files that delphi can refers to instead of linking all code into the .Exe, making EXE files much smaller.
So if you manage to get the BDE up, create the right aliases in it, and get all required BPL(if any), the application should start up correctly.
1 last thing that might need to be deployed with your application is midas.dll. (If the application use, for exemple, Tclientdataset)
That's all I can think of for now...
需要安装 Delphi 才能运行您的应用程序,这对我来说似乎很尴尬。也许您的应用程序是使用运行时包构建的,这意味着您必须包含应用程序所依赖的 bpl,但不需要 Delphi 本身。
您可以自己测试一下,只需在未安装 Delphi 的计算机上运行该应用程序即可。当它给出有关找不到 bpl 的错误时,您必须找到该 bpl 并将其添加到应用程序所在的目录中。
It seems very awkward to me that Delphi needs to be installed to run your application. Maybe your application is build with runtime packages which means you have to include the bpl's the application depends on, but Delphi itself should not be needed.
You can test this yourself, just run the app on a computer without Delphi installed. When it gives an error about a bpl not found, you have to find that bpl and add it to the directory where your application is located.
乌韦在这里给出了答案。如果您的应用程序使用 Delphi 提供的任何数据组件,则几乎总是需要安装 BDE 和其他驱动程序,例如,如果您正在与 Oracle 通信,则必须安装 Oracle OCI 驱动程序。
您不需要 Delphi 来安装 BDE,但您需要找到 BDE 安装程序并安装它。许多程序都使用 BDE,而不仅仅是 Delphi,因为它已获得许多公司的许可。
Uwe has the answer here. if your application uses any of the data components provided by Delphi it will almost always require the BDE to be installed and other drivers if for example you are talking to Oracle then the Oracle OCI drivers must be installed.
You do not need Delphi to install the BDE but you need to find the BDE installer and have it installed. MANY programs out there use the BDE and not just Delphi since it was licensed by many companies.