【发布时间】:2015-08-20 05:29:14
【问题描述】:
我有一个名为 CLSFW_SBSession 的 vb6 接口
Public Property Let CommandLine(ByVal RHS As String)
End Property
Public Property Get ProcessToken() As String
End Property
我有一个c#接口,需要扩展vb6接口。
[ComVisible(true)]
[Guid("8d7c2025-221d-400f-b81c-2f78d65c5842")]
public interface IClsSbSession : CLSFW_SBSession
{
string ProcessToken2 { get; }
string CommandLine2 { get; set; }
}
我无法从 c# 引用 ddl com 接口,因为 dll c# 引用了 dll com。
可以动态做吗?
【问题讨论】:
-
不要在 C# 中使用 VB6 DLL,创建并使用 tlb 这样就没有循环引用