MFCMAPI failed with Outlook 2003

Nov 15, 2009 at 7:12 PM

Hi,

I am trying to use MFCMAPI in a machine with Windows XP Professional, Outlook 2003 which is connected to only an Exchange 2003 account.

When i click on "Logon and Display Store Table", I get the following error:

Error
Code: MAPI_E_CALL_FAILED == 0x800045005
Function ::MAPIInitialize(&mapiInit)
File .\MapiObjects.cpp
Line 97

 

Could you please help me understand why this is happening?


Regards

Rakib

Coordinator
Nov 15, 2009 at 11:20 PM

Most likely you downloaded the 64 bit build of MFCMAPI, when what you need is the 32 bit build.

Nov 22, 2009 at 6:05 PM

Hi,

Thanks a lot for your reply. The build version was right but Outlook wasn't set as default mail client which i found out using the latest version of MFCMAPI.

Is there any way to initialize MAPI when Outlook is not set as default mail client ?

 

Regards

Rakib

Coordinator
Nov 23, 2009 at 1:39 PM

You can direct the MAPI Stub to send MAPI calls to a particular implementation:

http://msdn.microsoft.com/en-us/library/cc815368(office.14).aspx