Outlook AddIn using OOM compiled once for multiple Outlook Versions

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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

.



Relevant Pages

  • Re: Addin mulithreading
    ... > update the MAPIFolder of the Outlook using OOM. ... But when you call some OOM methods your thread will stop and wait while ...
    (microsoft.public.outlook.program_addins)
  • Re: SaveChanges problem
    ... Currently we have not found any known issue regarding using OOM and MAPI ... OutlookSpy - Outlook, CDO ... been able to duplicate it normally, but I can when using Outlook Spy ...
    (microsoft.public.win32.programmer.messaging)
  • Re: SaveChanges problem
    ... Currently we have not found any known issue regarding using OOM and MAPI ... OutlookSpy - Outlook, CDO ... been able to duplicate it normally, but I can when using Outlook Spy ...
    (microsoft.public.win32.programmer.messaging)
  • Re: GetItemFromID
    ... Outlook 2000 (I thought it's not possible to use newer OOM with older ... I will probably have to use AdviseSink for default inbox and ItemAdd ... Do you see this problem if you get rid of the second argument (store id), ...
    (microsoft.public.win32.programmer.messaging)
  • Re: Can I go from IMessageItem to Outlook type?
    ... CreateItemFromTemplate in OOM only imports a limited set of properties. ... You can create a new item in Outlook,, associate it ... id, release both OOM and Redemption obejcts, then reopen the message in OOM ...
    (microsoft.public.win32.programmer.messaging)