Inithandler issue in microeye vb6 OL addin, but only on OL2002

Posted on 2006-03-31
Last Modified: 2012-05-05
I have an OL vb6 add in that works fine on OL2003, but breaks on OL2002 and (unverified) OL2000 on line 100 below (this is the microeye template):

Friend Sub InitHandler(olApp As Outlook.Application, _
                       strProgID As String)
        'Declared WithEvents
        On Error GoTo InitHandler_Err
100     Set objOutlook = olApp 'Application Object
        'Instantiate a public module-level Outlook application variable
102     Set golApp = olApp

I project is being developed on a pc with OL2003, and that is what is refereenced in the VB6 project.

Any ideas why line 100 returns an error of "Object or Class does not support the set of events"?

Question by:thePrisoner
    1 Comment
    LVL 35

    Accepted Solution

    When you open VB in OL2002, does VB refereces to the OL2002 object library? Dependend on how you have implemented the macro, it may be, the reference is set to OL2003 object library, which is unknown in OL2002. You may have to set the reference to OL2002

    More a programming issue...

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    Outlook can send email in three different formats: HTML, Rich Text, and Plain Text. Rich Text format is problematic though as it automatically wraps all formatting into an attachment called Winmail.dat. It also tends to pack actual file attachments …
    Use email signature images to promote corporate certifications and industry awards.
    This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now