Solved

MAPIInitialize failed and get an error message

Posted on 2007-04-10
2
828 Views
Last Modified: 2013-11-20
Hi,

I get following error message when I call the MAPIInitialize( NULL );
"Either there is no default mail client or the current mail client cannot fulfill the messaging request. Please run Microsoft Office Outlook and set it as the default mail client."

Anyone knows what I can do to solve.

BTW, the following is the setting of my computer
OS is Vista.
IDE is Microsoft Visual Studio 2005
mail client:
      1) outlook 2003 (no default)
      2) Windows mail (default email client) -- I manually set it as default email client.
(1. Click to open Set Program Access and Computer Defaults.?  If you are prompted for an administrator password or confirmation, type the password or provide confirmation.
2. Under Choose a configuration, click Custom.
3. Under Choose a default e-mail program, click the e-mail program you'd like to use, and then click OK.)

Best Regards,
Michael
0
Comment
Question by:sparkythedog
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 500 total points
ID: 18896025
Does
CoInitialize(NULL);
MAPIInitialize(NULL);
help?  MAPI requires COM to be initialised before it can be used.
0
 

Author Comment

by:sparkythedog
ID: 18897595
HI,

CoInitialize will be call automatically when MAPIInitialize is called.

anyway thanks for your reply.

Yours,
Michael.

0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
Are you unable to connect or configure Hotmail email account in Microsoft Outlook 2010, 2007? Or Outlook.com emails are not downloading to Outlook? Lets’ see the problem and resolve Outlook Connector error syncing folder hierarchy (0x8004102A).
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question