JVCL 2.10 和德尔福 2010

发布于 2024-08-12 15:41:38 字数 171 浏览 4 评论 0原文

您是否尝试过在 Delphi 2010 中使用 JVCL 2.10 ?我有一个 Delphi 7 项目,该项目大量使用该库中的数据库组件,并希望将其移动到新的 Delphi。我知道从 JVCL 2.10 迁移到最新的 JVCL 版本会遇到很大问题,因此如果 Delphi 2010 与 2.10 一起使用会更好。你有什么经验吗?

Did you try using JVCL 2.10 with Delphi 2010? I have Delphi 7 project that heavily uses DB components from that library and want to move it to new Delphi. I know that migration from JVCL 2.10 to newest JVCL version will be very problematic, so it would be better if Delphi 2010 worked with 2.10. do you have any experience?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

醉态萌生 2024-08-19 15:41:38

JVCL 提供了一个转换器实用程序,它将搜索所有 Delphi 源文件并为您转换类名和其他简单的字符串转换。他们还为该转换器提供“脚本”,以便从旧的 JVCL 版本以及他们随着时间的推移吸收的库(如 rxlib)中移动。我发现它相当简单,甚至将他们的转换器与我自己的一些脚本一起使用,以删除对我想从正在升级的项目中消除的某些库的依赖关系。

JVCL supplies a converter utility which will search all Delphi source files and convert class names and other straightforward string conversions for you. They also supply "scripts" for this converter to move from older JVCL versions, as well as from libraries that they've absorbed over time (like rxlib). I found it to be fairly straightforward, and even used their converter with some of my own scripts to remove dependencies on some libraries I'd like to eliminate from the project I'm upgrading.

回眸一遍 2024-08-19 15:41:38

我将 Delphi 5 应用程序向上迁移到 Delphi 2009(并且我确信它可以在 2010 年编译),包括更改为最新版本的 JVCL。这很可能比尝试修复我使用的所有库要轻松得多。大多数更改都非常小,修复了声明中发生更改的事件(但大部分保持不变)。有几个地方我必须从 length(string) 更改为 Length(String)*SizeOf(Char)。如果您从一个没有警告的项目开始......或者您可以比较的已知警告,那么请努力在 Delphi 2010 中消除所有警告。

我的建议是安装 VMWare Workstation 或 VirtualPC,在那里安装 Delphi 2010 并执行您的操作端口与您现有的开发环境分开。经常进行备份(或将 Delphi 编辑器选项中的文件备份扩展到 99 并经常保存)并进行一些实验。历史选项卡非常适合让您回滚到以前的版本或比较上一个版本中的工作情况。

I migrated a Delphi 5 application upwards to Delphi 2009 (and I'm sure it would compile for 2010), including changing to the latest version of the JVCL. It was most likely less painful than attempting to fix all of the libraries that I used. Most of the changes were extremely minor, fixing up events which changed in their declaration (but for the most part stayed the same). A few places I had to change from length(string) to Length(String)*SizeOf(Char). If you start with a project with no warnings ... or known warnings you can compare against, then work your way to eliminate all of them in Delphi 2010.

My suggestion is to install VMWare Workstation or VirtualPC, install Delphi 2010 there and do your port separate from your existing development environment. Make frequent backups (or extend your file backup in Delphi Editor Options to 99 and save often) and experiment a little. The history tab is fantastic at allowing you to roll back to a previous version or to compare what WAS working in the last version.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文