Add object library?

S

Stu

Hi!
I'm getting an "object could not be found" error.
I developed the code on a machine that has the Outlook 10
object library. This machine only has the Outlook 9
library (among other references). I copied the 10 version
("msoutl.olb") to the local hard drive, then in the
project References used the Browse button to 'open' it,
but the 10 version does not appear as an Available
Reference.
How do I add it?
Many thanks,
Stu
 
K

Ken Slovak - [MVP - Outlook]

You can't. You would have to do a complete installation of Outlook
2002. And those libraries are not legally redistributable.

The standard way to develop for multiple versions of Outlook is to
develop on a machine that has the oldest version of Outlook installed
that you need to support. Then you make sure you don't use methods,
properties or events that aren't supported by that version (or if you
do that you check for the Outlook version in your code first and use
late binding by declaring your objects As Object instead of an early
bound type).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top