[C#] 纯文本查看 复制代码 namespace WindowsFormsApplication2 {
[ComVisible(true)]
public partial class Form1 : CCSkinMain {
public Form1() {
InitializeComponent();
webBrowser1.ObjectForScripting = this;
}
public void openQuest(string id) {
MessageBox.Show("done");
}
}
}
详细提示:
[C#] 纯文本查看 复制代码 Managed Debugging Assistant 'NonComVisibleBaseClass' has detected a problem in 'D:\Documents\Visual Studio 2013\Projects\WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\WindowsFormsApplication2.vshost.exe'.
Additional information: A QueryInterface call was made requesting the default IDispatch interface of COM visible managed class 'WindowsFormsApplication2.Form1'. However since this class does not have an explicit default interface and derives from non COM visible class 'CCWin.CCSkinMain', the QueryInterface call will fail. This is done to prevent the non COM visible base class from being constrained by the COM versioning rules.
|