简体   繁体   English

没有regsvr32的_com_ptr_t :: CreateInstance成功

[英]_com_ptr_t::CreateInstance success without regsvr32

I'm studying a program that create the COM object using _com_ptr_t::CreateInstance. 我正在研究一个使用_com_ptr_t :: CreateInstance创建COM对象的程序。 What I'm not getting is that, the code is working without having to regsvr32 the referenced COM dll. 我没有得到的是,代码正在工作,而不必regsvr32引用的COM DLL。

The only requirement is that the COM has to reside within the same directory of the executable. 唯一的要求是COM必须驻留在可执行文件的同一目录中。

Could someone kindly explains why this work without involving regsvr32? 有人可以解释为什么这项工作不涉及regsvr32?

Thank you. 谢谢。

http://msdn.microsoft.com/en-us/library/ms973913.aspx http://msdn.microsoft.com/en-us/library/ms973913.aspx

Registration free COM ... Not hard but tricky. 免费注册COM ...不难但很棘手。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM