IDAPI、BdeAdmin 和 Windows 7

发布于 2024-09-07 17:37:06 字数 360 浏览 0 评论 0原文

经过几个月的推迟,本周我终于开始使用一台新的 Windows 7 Professional PC 进行实际开发(其中 90% 仍然在 Delphi 7 中完成,其中一些程序仍然使用 Borland IDAPI 来访问 Paradox 文件)。之前的开发电脑仍然是 XP 电脑。

除了一件事之外,一切都正常:IDAPI 和 BdeAdmin 配置文件的设置不知何故弄乱了,或者它们在不同的位置读取/写入。更准确地说,看起来有两个配置文件处于活动状态。

它一定与在错误的文件夹或注册表设置中读取/写入权限或设置有关,但在搜索了几个小时后,我放弃了。

以前有人遇到过这样的问题吗?如果是这样,希望有人解决了这个问题吗?

感谢任何想法/解决方案...

After many months of postponing it, this week, I finally started using a new Windows 7 Professional PC for actual development (which is 90% still done in Delphi 7 with some of these programs still using the Borland IDAPI to access Paradox files). The previous development pc was still an XP-one.

Every thing works except for one thing: somehow the settings of the IDAPI and BdeAdmin configuration files are messed up or they are read/written in different locations. To be more precise, it looks like two configuration files are active.

It must have something to do with rights or settings being read/written in the wrong folder or registry setting, but after searching for it for a couple of hours, I give up.

Anyone had any problems with this, before ? And if so, hopefully, has any one solved this problem ?

Thx for any thoughts/solutions ...

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

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

发布评论

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

评论(2

Spring初心 2024-09-14 17:37:06

我的猜测是,这与 Vista 和 Windows 7 不允许程序更改 C:\Program Files 文件夹下的文件有关。他们在虚拟存储中创建这些更改的文件的副本,该过程称为虚拟化。这些副本最终位于用户帐户的隐藏 appdata 文件夹中,并且可以在 Local\VirtualStore\Program Files 文件夹中找到。该文件夹中的结构反映了实际 Program Files 文件夹中的结构。

使用“硬编码”路径访问 Program Files 文件夹中的文件的程序将始终获得原始的(未更改的)文件内容。

解决方案:在虚拟 XP 系统中运行应用程序或升级应用程序可能是您最好的选择。

您可以尝试运行提升的应用程序。即:右键单击它们并选择以管理员身份运行。请注意,仅以管理员身份登录是不够的。即使是管理员,默认情况下也会运行所有未提升的进程。您还可以创建快捷方式并为快捷方式设置“以管理员身份运行”,而不是右键单击 - 该复选框位于属性对话框的兼容性选项卡上。但不能保证这会缓解问题。

My guess is it has something to do with the fact that Vista and Windows 7 don't allow programs to change files under the C:\Program Files folder. They create a copy of those changed files in a virtual store, the process is known as virtualization. The copies end up in the hidden appdata folder of the user account and can be found in the Local\VirtualStore\Program Files folder. The structure in that folder reflects the one in the actual Program Files folder.

Programs that access their files in the Program Files folder using a "hardcoded" path, will always get the original - unchanged - file contents.

Solution: running the apps in a virtual XP system or upgrading the apps is probably your best bet.

You could try to run the apps elevated. That is: right click them and choose Run as Administrator. Please note that it isn't enough to be logged in as an administrator. Even administrators run all processes unelevated by default. Instead of right-clicking, you can also create a shortcut and set the Run as administrator for the shortcut - the checkbox for this is on the compatibility tab of the properties dialog. No guarantees though that this will alleviate the problem.

青衫负雪 2024-09-14 17:37:06

由于 IIRC D7 安装程序允许您以多种方式配置路径,也许只需在“程序文件”之外重新安装?

Afaik 这解决了几个 vista/w7 问题。

Since IIRC D7 setup allows you to configure paths in multiple ways, maybe simply do a reinstall outside "program files"?

Afaik this solves several vista/w7 problems.

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