Outlook AddIn using OOM compiled once for multiple Outlook Versions

M

movalgirl

Hi all,

I have developed a program which uses OOM to query the Outlook
Application. This is working using the import directives to access
the OOM:

-----------------------------------------------------------------------

#import "C:\Program Files\Microsoft Office\Office\mso9.dll" \
rename_namespace("Office") named_guids
using namespace Office;

#import "C:\Program Files\Microsoft Office\Office\MSOUTL9.olb"
rename_namespace("Outlook"), raw_interfaces_only, named_guids
using namespace Outlook;

-----------------------------------------------------------------------

My problem is: I want to compile this program ONCE and run it against
multiple Outlook Versions. The program already supports multiple
Outlook Versions. It is only the OOM
which would require seperate executables per Outlook version.

There must be a better way to do this???

Best regards,
mcn
 

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