Delphi、Win7、窗体问题、兼容性

发布于 2024-10-12 11:56:23 字数 452 浏览 1 评论 0 原文

我们有 Win7/x64 和 Delphi6。很多事情都像WinXP一样工作,但我发现了一个非常令人不安的现象。

很多次在构建时我都将其放入源代码中,并尝试使用此功能。然后Delphi开始将所有窗体放入前台。当构建完成后,我看到许多表单,我需要关闭它们以返回源。

更令人不安的是有时在构建或加载项目时,或者??? Delphi也开始将表单推送到前台,但它挂在了这个操作上。每个表单都会被触摸并带到顶部窗口,并且它们也在任务托盘中可见。当全部可见时,Delphi 将它们全部隐藏。并从头开始。

那我需要关闭进程。

我尝试在 Delphi 上设置兼容性 WinXp,但是当我尝试使用 ShellExec 或 DblClick 打开 dpr 时,我收到系统警告“进程想要修改系统”,当我单击允许(是)时, dpr 未加载...:-(

你有同样的问题吗?

如何解决?

谢谢: DD

We have Win7/x64 with Delphi6. Many things are working like in WinXP, but I found a very disturbing phenomenon.

Many times on build I placed in the source, and try to use this function. Then Delphi starting to put all forms into foreground. When it finished with build, many forms I see, and I need to close them to back to source.

More disturbing that sometimes on build, or load project, or ???? the Delphi also start to push to forms into foreground place, but it hanged on this operation. Every form is touched and bringed to top window, and they are visible in the task tray too. When all visible, Delphi hide them all. And start again from the beginning.

I need to close process then.

I tried to set compatibility WinXp on Delphi, but then, when I try to open a dpr with ShellExec, or DblClick, I got system warn to "The process want to modify the system", and when I clicked on allow (Yes), the dpr not loaded... :-(

Do you have same problem?

How to solve it?

Thanks:
dd

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

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

发布评论

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

评论(2

[浮城] 2024-10-19 11:56:23

首先,您不能认真期望像 Delphi 6 这样的 2001 年软件开发产品能够与 Windows 7 这样的 2009 年操作系统完全兼容,该操作系统此后经历了重大的结构变化。

开发产品本质上是在当时最新操作系统版本的边缘工作(通常是切割,有时甚至变成出血)。

操作系统的更改有时会导致软件停止工作或限制其功能。对于开发软件来说更是如此。

在这种情况下,自 Windows Vista 以来引入的重大更改,如 UAC、会话管理、视频输出和任务栏管理将影响您的 Delphi 体验。

这就是 Delphi 2007 发布并向后兼容 2006 的原因之一:为了解决其中的许多问题。

也就是说,基本上有三种选择供您选择:

  • 在 Windows XP 虚拟机下运行 Delphi(在 Windows 7 中,您可以使用 XP 模式 rel="nofollow">VMware 工作站/播放器虚拟 PC, 链接文本Windows 7 中的 VirtualBox 和其他功能,或
  • 了解 UAC 和其他新功能,以及它们如何影响一般软件,更具体地说是软件开发环境;然后安装 Delphi 6,解决部分限制和问题剩下的限制
  • 升级到更新的 Delphi 版本:Delphi XE(unicode)工作正常,并为您提供免费的 Delphi 2007(非 unicode),它也工作得很好

--jeroen

Let me start that you cannot seriously expect a 2001 software development product like Delphi 6 to fully work with a 2009 operating system like Windows 7 that has since then undergone major structural changes.

Development products by nature work at the edge (usually cutting, sometimes turning into bleeding) of what is possible at the operating system versions that were current at their time.

Changes in operating systems sometimes cause software to stop working, or to limit their functionality. This is more so for development software.

In this case, major changes introduced since Windows Vista, like UAC, session management, video output and task bar management will affect your Delphi experience.

That is one of the reasons that Delphi 2007 got released with 2006 backward compatibility: to solve many of those problems.

That said, there are basically three options for you:

  • run Delphi under a Windows XP virtual machine (in Windows 7, you can use XP mode for free if you have Windows 7 Professional, Enterprise or Ultimate, or something commercial like VMware workstation/player, Virtual-PC, link textVirtualBox and others in Windows 7, or
  • learn about UAC and other new features, and how they influence software in general, and more specifically software development environments; then install Delphi 6 working around parts of the limitations and live with the remaining limitations
  • upgrade to a newer Delphi version: Delphi XE (unicode) works fine, and gets you a free Delphi 2007 (non-unicode) which works nicely as well

--jeroen

掌心的温暖 2024-10-19 11:56:23

根据您的描述,我认为您的电脑存在严重的病毒感染问题,但这只是我的情况。

Judging by your description, I'd say that you have a serious virus infection problem on your PC, but that's just me.

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