使用哪个midas.dll? 32位数据快照/ 64位服务器 [英] Which midas.dll to use? 32bit datasnap/64bit server

查看:97
本文介绍了使用哪个midas.dll? 32位数据快照/ 64位服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

考虑以下内容:
我们在 64 BIT Windows服务器上安装了 32位 Datasnap服务器

Considering the following: We have a 32 bit Datasnap server installed on a 64 BIT Windows Server

在embarcadero\rad studio\11.00\redist中有2个文件夹:32位和64位,每个文件夹中都有一个midas.dll。

In embarcadero\rad studio\11.00\redist are 2 folders : 32 bit and 64 bit, with in each a midas.dll.

我们应该将文件放在哪里?

Wich file should we put where?

在Windows\system32或Windows\syswow64中?

In windows\system32 or windows\syswow64 ?

推荐答案

切勿在Windows系统目录中放置任何内容(除非您有非常非常非常好的理由

Never put anything in the Windows system directories (unless you have a very, very, very good reason to write there).

这是一个非常糟糕的做法(可追溯到Windows 3.x时代,开发人员的技能很差,因为这些目录总是在搜索路径中)导致麻烦(即,如果另一个应用程序很少或根本没有检查就用自己的DLL破坏了您的DLL)。将DLL放在应用程序文件夹中。这将确保您的应用程序使用正确版本的DLL。或者,如果您出于非常非常非常好的理由不得不在其他地方编写它,则可以使用其中一种技术将目录添加到搜索路径或重定向DLL加载。

It's a very bad practice (dating back to Windows 3.x times and poor developers skills, because those dirs are always in the search path) just leading to troubles (i.e. if another application chnages your DLL with its own with little or no checks). Put the DLL in the application folder. It will ensure your application uses the correct version of the DLL. Or if you have to write it elsewhere for a very, very, very good reason use one of the techniques to add a directory to the search path or redirect DLL loading.

Windows系统目录必须被视为操作系统专用目录。 Windows不允许的这种做法通常会使Windows成为缓慢而不稳定的系统。

Windows system directories must be regarded as operating system private ones. This kind of practices which Windows doesn't forbids enough are those that often makes Windows a slow and unstable system.

如果您的应用程序是32位的,则需要不依赖操作系统的32位DLL。

If you're application is 32 bit, you need the 32 bit DLL regarless of the operating system.

这篇关于使用哪个midas.dll? 32位数据快照/ 64位服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆