References to Outlook

G

Gargamil

I have an application that uses the Microsoft Outlook library to provide the
ability to create and read emails. The problem is that the users are using
different versions of Outlook (9 & 10) that generate errors if the other
version of the reference is installed. This has lead to the users
reselecting the correct reference each time the app is run.

I guess the question is; is it possible to dynamically set the correct
reference based upon the version of Outlook the user is running??

g
 
R

Rick Brandt

Gargamil said:
I have an application that uses the Microsoft Outlook library to
provide the ability to create and read emails. The problem is that
the users are using different versions of Outlook (9 & 10) that
generate errors if the other version of the reference is installed. This has
lead to the users reselecting the correct reference each
time the app is run.
I guess the question is; is it possible to dynamically set the correct
reference based upon the version of Outlook the user is running??

g

Google on the term "Late Binding". This allows you to make relatively small
changes to your code so it will work without a reference and (in most cases)
make it version independent. IMO it is the only way to automate external
libraries.
 
T

Tom Wickerath

In addition to Rick's excellent advice, I suggest splitting your database into a front-end (FE)
and back-end (BE) files. Each user should have a separate copy of the FE on their local hard
drive. You are apparently sharing the entire database from a file server. This is really the only
explanation for your statement "This has lead to the users reselecting the correct reference each
time the app is run". If each user had their own copy of the FE, then they'd only need to
correct an early bound reference one time, at most.

Sharing an entire database over the network has previously been identified by Microsoft personnel
as the #1 cause of database corruption. Do so at your own risk.

Tom
_________________________________

I have an application that uses the Microsoft Outlook library to
provide the ability to create and read emails. The problem is that
the users are using different versions of Outlook (9 & 10) that
generate errors if the other version of the reference is installed. This has
lead to the users reselecting the correct reference each
time the app is run.
I guess the question is; is it possible to dynamically set the correct
reference based upon the version of Outlook the user is running??

g

Google on the term "Late Binding". This allows you to make relatively small
changes to your code so it will work without a reference and (in most cases)
make it version independent. IMO it is the only way to automate external
libraries.
 
Top