简体   繁体   English

什么IDE /工具来编译Delphi应用程序

[英]What IDE/tools for compiling Delphi Application

I am a C# developer by trade, but have been tasked with making some changes to a Delphi desktop application. 我按行业是C#开发人员,但是受命对Delphi桌面应用程序进行一些更改。 I have never used Delphi and I'm trying to identify the version of Delphi the application has been compiled with, and find a (preferably free) development stack/environment. 我从未使用过Delphi,而是试图确定已编译应用程序的Delphi版本,并找到(最好是免费的)开发堆栈/环境。

Looking at the source, there are a bunch of .DCU, .DPP, .DFM, and .PAS files. 从源头来看,有一堆.DCU,.DPP,.DFM和.PAS文件。 There's a .DPR file that would seem to reference all of the forms. 有一个.DPR文件似乎可以引用所有表格。 In the .CFG file I found reference to 在.CFG文件中,我找到了对

c:\program files (x86)\borland\delphi7\Projects\Bpl

Based on the above info, what tools should I use to design and compile this application? 根据以上信息,我应该使用哪些工具来设计和编译此应用程序?

That entry in the .cfg file is a clear cut indication that the project was most recently built with Delphi 7. .cfg文件中的该条目明确表明该项目是最近使用Delphi 7构建的。

However, it may be more tricky to build this project than just to install Delphi 7 and press build. 但是,构建该项目可能比仅安装Delphi 7并按build更为棘手。 You may very well need to install a bunch of third party packages and libraries. 您可能非常需要安装一堆第三方软件包和库。 In an ideal world there would be documentation on how to build, or at the very least, how to create a build environment. 在理想的世界中,将会有关于如何构建或至少如何创建构建环境的文档。 Sadly, you may not be living in an ideal world! 可悲的是,您可能没有生活在理想的世界中!

I'm trying to .... find a (preferably free) development stack/environment. 我正在尝试....(最好是免费的)开发堆栈/环境。

Well, Delphi 7 is not free. 好吧,Delphi 7不是免费的。 There are free Delphi like development environments, most specifically Lazarus. 有像Delphi这样的免费开发环境,尤其是Lazarus。 However, you would need to port the existing code, which is likely to be a non-trivial task. 但是,您将需要移植现有的代码,这可能是一项艰巨的任务。 Especially if you have no Delphi experience. 特别是如果您没有Delphi经验。

It appears to be Delphi 7. 看来是Delphi 7。

But the compiler version is only part of your problem, as several commentators have mentioned here. 但是编译器版本仅是您的问题的一部分,正如一些注释器在此处提到的那样。 Unless they used only Delphi components, you're going to need to find the component libraries that were used, and that could be nearly impossible in itself. 除非他们仅使用Delphi组件,否则您将需要查找所使用的组件库,而这本身几乎是不可能的。 If it used any DLLs or BPLs, you'll need to find them as well, and possibly re-build the interfaces. 如果它使用任何DLL或BPL,则也需要找到它们,并可能重新构建接口。

I'd spend some time trying to track down a backup that was made of the system that this software was developed on, as that's your best bet. 我会花一些时间来尝试查找由该软件所开发的系统组成的备份,因为这是您最好的选择。 It won't cost you anything assuming everything is still intact. 假设一切仍然完好,它不会花费您任何费用。

But trying to load up the source into D7, or anything for that matter, is going to be a total crap shoot unless you know all of the libraries that were used, how things were configured, all that good stuff. 但是,除非您知道所有使用的库,如何配置的东西以及所有的好东西,否则尝试将源代码加载到D7或类似的东西中将是一个垃圾。

It would be far more efficient for your company to just hire a Delphi expert for a day or so to dig into this for you than for you to waste a week or two of your time on something you don't know anything about. 对于您的公司而言,仅雇用Delphi专家一整天左右为您解决这个问题,要比浪费一两个星期的时间来做您不了解的事情要有效得多。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM