从没有REGSVR32文件中创建COM对象 [英] Create COM object from file without regsvr32
问题描述
是否有可能只用DLL和无REGSVR32创建COM对象的实例?
Is it possible to create an instance of a COM object with just the dll and no regsvr32?
我在这里的主要目标是创建一个DirectShow Filter的实例并把它插入我的图,但是我不希望我们REGSVR32注册过滤器。该过滤器将是一个dll /斧头将与我的应用程序分发,并会出现在我的道路。我会知道的CLSID为好。
My main goal here is to create an instance of a directshow filter and insert it into my graph-but I don't want to us regsvr32 to register the filter. The filter will be in a dll/ax that will be distributed with my application and will be present in my path. I will know the CLSID as well.
因此,基本上所有我需要的是刚刚的同时具有DLL / AX和CLSID创建类型的实例的方法。这是可能在C#?
So basically all I need is a way to create an instance of the type while just having the dll/ax and the CLSID. Is this possible in C#?
推荐答案
听起来像是你要使用的免注册COM 。
Sounds like you want to use registration-free COM.
这篇关于从没有REGSVR32文件中创建COM对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!