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

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

问题描述

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

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

在 embarcadero ad studio11.00 edist 中有 2 个文件夹:32 位和 64 位,每个文件夹中都有一个 midas.dll.

In embarcadero ad studio11.00 edist are 2 folders : 32 bit and 64 bit, with in each a midas.dll.

我们应该把哪个文件放在哪里?

Which file should we put where?

windowssystem32windowssyswow64 中?

推荐答案

切勿在 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 加载.

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天全站免登陆