M
Mike M.
I have an app written in c++ that runs as a service on Windows 2000. It
uses the MAPI namespace to get the requested folder. For Outlook 2003 I was
just getting the namespace. For Outlook 2000 I also need to do a namespace
logon or I get an exception when I try to access any methods of namespace
interface. Anyone know why this might be?
TIA
Outlook::_ApplicationPtr application;
Outlook::_NameSpacePtr anamespace;
application.CreateInstance("Outlook.Application");
Outlook::MAPIFolderPtr aFolder;
anamespace = application->GetNamespace("MAPI");
#if 0
// Need to logon for Outlook 2000 to work.
anamespace->Logon("mydomain.net\\myname", "password");
#endif
uses the MAPI namespace to get the requested folder. For Outlook 2003 I was
just getting the namespace. For Outlook 2000 I also need to do a namespace
logon or I get an exception when I try to access any methods of namespace
interface. Anyone know why this might be?
TIA
Outlook::_ApplicationPtr application;
Outlook::_NameSpacePtr anamespace;
application.CreateInstance("Outlook.Application");
Outlook::MAPIFolderPtr aFolder;
anamespace = application->GetNamespace("MAPI");
#if 0
// Need to logon for Outlook 2000 to work.
anamespace->Logon("mydomain.net\\myname", "password");
#endif