XP Add-in won't load in 2000

  • Thread starter Thread starter Jon Rizzo
  • Start date Start date
J

Jon Rizzo

Hi,

I have developed a COM add-in for Outlook XP that I am trying to load in
Outlook 2000. In 2000, the module starts to load, but then throws the error
"Run-time error '459': Object or class does not support the set of events".

I suspect that this is due to the fact that one of the classes in my project
(VB6) catches events from an Explorer object with events. When I comment
out the "WithEvents", the program loads (but obviously doesn't function
properly.), but if I leave the WithEvents in & comment out all of the event
traps, the load still fails. I suspect this has something to do with the
fact that on my development machine, I have Outlook XP, and set a reference
to the Outlook 10 library. If I do not take advantage of any XP-specific
methods, properties or events, then shouldn't I be able to do this? If so,
how? I would like to reference the Outlook 9 object library, but that does
not appear to be available on my development machine, even though the Office
9 library IS.

Can someone explain to me how this is done?

Thanks.

Jon Rizzo
Langan Engineering and Environmental Services, Inc.
 
Hi Jon,

"Jon Rizzo" <jrizzo said:
Hi,

I have developed a COM add-in for Outlook XP that I am trying to load in
Outlook 2000. In 2000, the module starts to load, but then throws the error
"Run-time error '459': Object or class does not support the set of events".

I suspect that this is due to the fact that one of the classes in my project
(VB6) catches events from an Explorer object with events. When I comment
out the "WithEvents", the program loads (but obviously doesn't function
properly.), but if I leave the WithEvents in & comment out all of the event
traps, the load still fails. I suspect this has something to do with the
fact that on my development machine, I have Outlook XP, and set a reference
to the Outlook 10 library. If I do not take advantage of any XP-specific
methods, properties or events, then shouldn't I be able to do this? If so,
how? I would like to reference the Outlook 9 object library, but that does
not appear to be available on my development machine, even though the Office
9 library IS.

Can someone explain to me how this is done?

Thanks.

Jon Rizzo
Langan Engineering and Environmental Services, Inc.
Ms docs states that if you taget the lower possible version, your addin
will work with newer ones. So, while you develop the addin, if you
target 2000, and version 9 libraries, after that it should work with XP
and 2003.

So far with mine addin it is true. You just don't have to use any
version specific functionality.

As far as I know you can install different versions of Office on same
machine, different folders, except Outlook. So you need to install only
Outlook 2000 maybe, and to remove the XP version.

Hope that helps
Sunny
 
Always develop addins using the lowest version you intend to support
and don't use methods, properties or events that aren't in the lowest
version.
 
Thanks for the tip, I will try that. How do I reference the older type
library from my development machine? Do I need to have outlook 2000 loaded
on my development machine, or can I somehow reference version 9 of the
library if Outlook XP is loaded on my development machine? The only one I
see listed as an option is version 10.


Jon
 
Your development machine would have to have Outlook 2000 installed.
 
Back
Top