PC Review


Reply
Thread Tools Rate Thread

application object events issue

 
 
=?Utf-8?B?c2VsZ2lu?=
Guest
Posts: n/a
 
      8th Dec 2003
Hi,

I'm developing a VB6 COM Add-In for outlook 2000. I have the following code:

Private WithEvents olApp As Outlook.Application

Private Sub AddinInstance_OnConnection(ByVal Application As Object, ByVal ConnectMode As AddInDesignerObjects.ext_ConnectMode, ByVal AddInInst As Object, custom() As Variant)
Set olApp = Application
.....

When I install and run the add-in, I get the error message:
"Run-time error '459':
Object or class does not support the set of events"

Any help?


thanks,

Selgin





 
Reply With Quote
 
 
 
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      10th Dec 2003
Do you have a reference set to Outlook in your project references? Are
you declaring the use of IDTExtensibility2?

Try downloading the ItemsCB COM addin sample from the Resources page
at www.microeye.com. It shows COM addin best practices and you can try
running it to test your own setup.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginners Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"selgin" <(E-Mail Removed)> wrote in message
news:CE94BE8D-EE0E-4B2E-A3B5-(E-Mail Removed)...
> Hi,
>
> I'm developing a VB6 COM Add-In for outlook 2000. I have the

following code:
>
> Private WithEvents olApp As Outlook.Application
>
> Private Sub AddinInstance_OnConnection(ByVal Application As Object,

ByVal ConnectMode As AddInDesignerObjects.ext_ConnectMode, ByVal
AddInInst As Object, custom() As Variant)
> Set olApp = Application
> ...
>
> When I install and run the add-in, I get the error message:
> "Run-time error '459':
> Object or class does not support the set of events"
>
> Any help?
>
>
> thanks,
>
> Selgin
>
>
>
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Object Events for Object you Created Graham Mandeno Microsoft Access Form Coding 3 30th Nov 2009 11:05 PM
Late Binding issue with Excel.Application object Mr.Frog.to.you@googlemail.com Microsoft Excel Misc 2 4th Aug 2009 08:10 AM
Application load and application exit events Domac Microsoft Access 1 28th Aug 2006 10:04 AM
some kind of Application Variable with Application Events??? Pieter Microsoft VB .NET 4 22nd Nov 2005 08:10 AM
Using Events with the Application Object & XL 2003 Kevin H. Stecyk Microsoft Excel Programming 13 25th Jan 2005 04:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:04 PM.