- Joined
- Jun 27, 2005
- Messages
- 5
- Reaction score
- 0
Possible solution to your problem...
Hi again Rog,
I found the solution/workaround to my problem(s): Performance and the deleted items not showing the correct parent. Well in C++ anyway.
What I did was create a new instance of Outlook withing the plugin and get the MAPI namespace from there. That solves the deleted items not deleting and is a heck of a lot quicker since it does not seem to trigger the Tapi32.dll and Rtutils.dll (Telephony stuff).
//-------------------------------------------------------------------------
// This is the correct method of connecting to the outlook model
// (MAPI + new Outlook instance) this method is faster than using the
// application reference passed to the plugin. This seems to be because
// no default outlook automation occurs in this state.
//-------------------------------------------------------------------------
_ApplicationPtr objOutlook("Outlook.Application");
objOutlook.CreateInstance(__uuidof(Application));
objOutlook->GetNamespace(CComBSTR("MAPI"),&olNs);
Hope that solves your problem too.
Chris
Hi again Rog,
I found the solution/workaround to my problem(s): Performance and the deleted items not showing the correct parent. Well in C++ anyway.
What I did was create a new instance of Outlook withing the plugin and get the MAPI namespace from there. That solves the deleted items not deleting and is a heck of a lot quicker since it does not seem to trigger the Tapi32.dll and Rtutils.dll (Telephony stuff).
//-------------------------------------------------------------------------
// This is the correct method of connecting to the outlook model
// (MAPI + new Outlook instance) this method is faster than using the
// application reference passed to the plugin. This seems to be because
// no default outlook automation occurs in this state.
//-------------------------------------------------------------------------
_ApplicationPtr objOutlook("Outlook.Application");
objOutlook.CreateInstance(__uuidof(Application));
objOutlook->GetNamespace(CComBSTR("MAPI"),&olNs);
Hope that solves your problem too.
Chris