Any idea how to convert this to 4gl?

dayv2005

Member
I'm trying to get an onconnection event with my outlook app in 4gl. All i can find are these. I'm trying to create a trusted add-in to outlook.

Visual Basic
Public Sub OnConnection(ByVal application As Object, ByVal _
connectMode As ext_ConnectMode, ByVal addInInst As Object, _
ByRef custom As Array) Implements IDTExtensibility2.OnConnection
applicationObject = CType(application, DTE2)
addInInstance = CType(addInInst, AddIn)
MsgBox("Add-in is connected.")
End Sub


c#
public void OnConnection(object application, ext_ConnectMode
connectMode, object addInInst, ref Array custom)
{
applicationObject = (DTE2)application;
addInInstance = (AddIn)addInInst;
System.Windows.Forms.MessageBox.Show("Add-in has connected.");
}
 
Back
Top