在64位应用程序中使用32位COM dll [英] using 32 bit COM dll in 64 bit application
本文介绍了在64位应用程序中使用32位COM dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们可以在64位应用程序中使用32位COM dll吗?
Can we use 32 bit COM dll in 64 bit application.
推荐答案
是的.例如,请参见: http://www.dnjonline.com/article.aspx?id=jun07_access3264 [< ^ ].
重要的是要知道:您不能直接,静态或动态链接32位代码和64位代码.
原则上,您甚至可以避免使用COM.在这种情况下,您可以有两个不同的进程,一个是32位,另一个是64位.通过远程过程调用(RPC)机制,一个这样的进程可以以与库相同的方式为其他目标平台的其他对象提供服务.
—SA
Yes. For example, see this: http://www.dnjonline.com/article.aspx?id=jun07_access3264[^].
What''s important to know: you cannot link 32-bit code and 64-bit directly, statically or dynamically.
In principle, you can even avoid using COM; in this case you can have two different processes, one would be 32-bit, another 64-bit. One such process can serve up others regardless their target platforms in the same manner of a library via remote procedure call (RPC) mechanism.
—SA
这篇关于在64位应用程序中使用32位COM dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文