Microsoft C++ exception: _com_error at memory location

谁说胖子不能爱 提交于 2019-12-11 14:13:21

问题


I have created a COM dll in .Net and build it under Any CPU. I am using that COM dll in Vcpp code but getting Microsoft C++ exception: _com_error at memory location error when creating the pointer reference to COM class. The VCPP code works perfectly fine if the Build configuration is Win32 but if i change the configuration to X64 mode then teh application crashes.

Please Help


回答1:


Since you're using a so-called in process DLL, you have to use the 64 bits version of that DLL in your program.

This question discusses it. It seems that you have to use the 64 bit regasm tool to register your .NET DLL.



来源:https://stackoverflow.com/questions/6952891/microsoft-c-exception-com-error-at-memory-location

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!