我在C# DLL中孤立了一架COM物体。 我将“COM”这一提法视为孤立的。 我看到这一宣言正在产生。 用<代码>Assembly.LoadFrom接手DLL,并用打上打上打上打上打上打字的类别,就没有注册的类别而言,这是一个例外。
If I do the same thing with an EXE the process behaves as expected. I can unregister the COM DLL, call the same method I m trying to call in the managed DLL and it works successfully.
If I create an EXE, reference the said managed DLL, it also works. Is there any way to do this with Assembly.LoadFrom?
这部法律实际上比这部法律更加复杂:
public class SomeClass()
{
public void CallCOM()
{
MyComObject obj = new MyComObject();
obj.SomeCOMCall();
}
}
它是否打算这样做?