English 中文(简体)
同一系统的64条轨道和32条轨道上未加管理――最佳做法?
原标题:64-bit and 32-bit unmanaged dlls on the same system - best practices?

我共有两辆车,建筑在32比特和64比特。 两者都使用相同的名称、oo。 我如何安装两只oo。 dlls on the system so that my 32 bit and 64 bit apps found the disabilities dlls in their path.

Windows itself uses SysWOW64 (for 32-bit dlls) and System32 (for 64-bit dlls). I would like to avoid deploying to these folders. What is the accepted way (if any) to have a dll in both bitnesses coexist on the same box and be found by the appropriate applications that are linked to them?

最佳回答

如果你不向需要重新定位的夹员(即系统32)部署,那么你就非常需要给DLs不同的名称。 其原因是,DLL搜索途径在32至64个轨道程序之间共享,如果你依靠搜索途径查找DLL,则迫使你使用不同的名称。

Note that I am ruling out any solutions that rely on SxS versioning. Attempting to go down that route leads to all sorts of complications and headaches for anyone attempting to use your DLL.

问题回答

You didn t indicate how you were installing your binaries or how they were getting loaded or installed, but I surmise that the solution will involve having separate installation directories for 32-bit vs. 64-bit installs.

传统上,在64台借机上安装的32台轨道仪器通常装入“c:programfile(x86)”的子体,而不是“c:programfile”。 假定32个专用信标(包括MSIs)的电算器和装置(包括MSIs)将改用C:program文档(x86)目录。

You don t have to worry about 64-bit binaries getting installed on 32-bit OS. Just block that from happening in setup, since those binaries won t load anyway.





相关问题
Why running a service as Local System is bad on windows?

I am trying to find out the difference between difference service account types. I tumbled upon this question. The answer was because it has powerful access to local resources, and Network Service ...

Programmatically detect Windows cluster configuration?

Does anyone know how to programatically detect that a Windows server is part of a cluster? Further, is it possible to detect that the server is the active or passive node? [Edit] And detect it from ...

get file icon for Outlook appointment (.msg)

I ve read Get File Icon used by Shell and the other similar posts - and already use SHFileInfo to get the associated icon for any given extension, and that works great. However, Outlook uses ".msg" ...

Identifying idle state on a windows machine

I know about the GetLastInputInfo method but that would only give me the duration since last user input - keyboard or mouse. If a user input was last received 10 minutes ago, that wouldn t mean the ...

Terminating a thread gracefully not using TerminateThread()

My application creates a thread and that runs in the background all the time. I can only terminate the thread manually, not from within the thread callback function. At the moment I am using ...

热门标签