Implements IDTExtensibility2的宿主程序怎么开发?
IDTExtensibility2是个接口,实现插件连接到宿主程序。
比如OFFICE、VB等。它有几个接口事件:
Implements IDTExtensibility2 Private Sub IDTExtensibility2_OnConnection(ByVal Application As Object, ByVal ConnectMode _ As AddInDesignerObjects.ext_ConnectMode, ByVal AddInInst As Object, custom() As Variant) MsgBox "You connected to clsVBComTest " End Sub Private Sub IDTExtensibility2_OnAddInsUpdate(custom() As Variant) 'End Sub Private Sub IDTExtensibility2_OnBeginShutdown(custom() As Variant) ' End Sub Private Sub IDTExtensibility2_OnDisconnection(ByVal RemoveMode As AddInDesignerObjects.ext_DisconnectMode, custom() As Variant) ' End Sub Private Sub IDTExtensibility2_OnStartupComplete(custom() As Variant) ' End Sub