Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error while assigning a variable which is declared withevents in a COM

Status
Not open for further replies.

NazerMohideen

Programmer
Sep 16, 2003
1
GB
Hi everyone,

I am new to VB.Net COM addin. I have done addins in VB6. I am trying to convert them to vb.net.

This addin is for outlook.

....
....
Public WithEvents objIns As Outlook.Inspectors
.....

Public Sub OnStartupComplete(ByRef custom As System.Array) Implements Extensibility.IDTExtensibility2.OnStartupComplete
On Error Resume Next
objIns = ApplicationObject.Inspectors 'ApplicationObject is the instance of the Application
if (Err.Number <> 0) then Msgbox (Err.Description)
MsgBox(&quot;Outlook is powered by ePostmanager&quot;, MsgBoxStyle.Information)
End Sub

An error 'No such Interface Supported' occurs.


Thanks in advance.
Nazer Mohideen
 
Try to see if you have the right AddIn in references. Look in VisualBasic editor in Tools->References. If not checked, try to check it. If it is not in the list, you should install this addin at the first.

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top