Is there a way for registration free activation of EXE COM components

纵然是瞬间 提交于 2019-12-01 04:56:41

问题


Is there a way to activate a COM component which is an EXE COM application and also it's dependent COM dlls? I want to activate this COM component from .NET application(VS 2005/VS 2008).

The path of call is C# application --> invoking out-of-proc exe(this is through COM) and then this out-of-proc invokes few COM dlls


回答1:


Reg-free COM does not work for out of process components.

ActiveX EXE and ActiveX Document project types cannot be used with Reg-Free COM, as discussed in the sidebar.

Simplify App Deployment with ClickOnce and Registration-Free COM




回答2:


Look at Microsoft Forum Registration-Free EXE COM Server ? So, There is no direct way to do this work whithot any additional code. As for me, the code still needs for classic registration to correct date marshaling.




回答3:


Registration free activation is described here. Roughly speaking, it looks like you create your COM components and clients as usual, then put them all into the same directory with a manifest file which contains the COM registration information.




回答4:


You can check this article. Author is loading COM IFilter objects bypassing standard CoCreateInstance. Maybe this can help you.



来源:https://stackoverflow.com/questions/1026202/is-there-a-way-for-registration-free-activation-of-exe-com-components

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