PC Review
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook Program Addins
How to avoid dependency on Office dll version (MSO.dll)
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook Program Addins
How to avoid dependency on Office dll version (MSO.dll)
![]() |
How to avoid dependency on Office dll version (MSO.dll) |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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 > > > > > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

