PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Program Addins How to avoid dependency on Office dll version (MSO.dll)

Reply

How to avoid dependency on Office dll version (MSO.dll)

 
Thread Tools Rate Thread
Old 04-07-2003, 01:08 AM   #1
Orlin Todorov
Guest
 
Posts: n/a
Default How to avoid dependency on Office dll version (MSO.dll)


Hello,

My question may be a little stupid, but how should I declare those variables
so that the addin doesn't depend on the version of the Office object model
dll? Right now using the addin sample I have:

Dim cbrNewToolbar As Office.CommandBar
Private WithEvents CBButton As Office.CommandBarButton

This way though I need to have two version of the add-in dll -- one for
Office 2002 and one for Office 2000.

Any advice is greatly appreciated!

Thank you,
Orlin


  Reply With Quote
Old 13-07-2003, 07:25 AM   #2
Orlin Todorov
Guest
 
Posts: n/a
Default Re: How to avoid dependency on Office dll version (MSO.dll)

Thank you Ken,

I maybe got confused. Maybe it was a different problem I was experiencing.
I will try again.


"Ken Slovak - [MVP - Outlook]" <kenslovak@mvps.org> wrote in message
news:ucQ3ehJRDHA.2476@TK2MSFTNGP10.phx.gbl...
> Just develop your addin using a dev machine with the oldest version of
> Outlook you want to support installed. The addin will work with later
> versions of Outlook.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Lead Author, Professional Outlook 2000 Programming, Wrox Press
> Lead Author, Beginning VB 6 Application Development, Wrox Press
> Attachment Options
> http://www.slovaktech.com/attachmentoptions.htm
> Extended Reminders
> http://www.slovaktech.com/extendedreminders.htm
>
>
> "Orlin Todorov" <orlink@hotmail.com> wrote in message
> news:#CFHYobQDHA.3880@tk2msftngp13.phx.gbl...
> > Hello,
> >
> > My question may be a little stupid, but how should I declare those

> variables
> > so that the addin doesn't depend on the version of the Office object

> model
> > dll? Right now using the addin sample I have:
> >
> > Dim cbrNewToolbar As Office.CommandBar
> > Private WithEvents CBButton As Office.CommandBarButton
> >
> > This way though I need to have two version of the add-in dll -- one

> for
> > Office 2002 and one for Office 2000.
> >
> > Any advice is greatly appreciated!
> >
> > Thank you,
> > Orlin
> >
> >

>
>



  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off