开发者

Loading native COM DLLs in 64bit environment

I have a 32bit/64bit COM DLLs in C++: mycom32.dll, mycom64.dll. Both of them are exactly the same but mycom32.dll is compiled for 32bit and mycom64.dll is compiled for 64bit. That means that BOTH DLLs have the same UUID and the same CLSID!

Now, sometimes I want to use this COM from 32bit processes and sometimes I want to use this COM from 64bit processes.

Is it possible to load the correct DLL without creating two different CLSIDs and check during runtime 开发者_如何学编程if the process is 32bit/64bit?


It should be possible to register both of them without issue; this is part of what Registry Redirection is supposed to solve.

Here's a more detailed explanation of how this works.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜