Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

MAPIInitialize failed and get an error message

Posted on 2007-04-10
2
Medium Priority
?
846 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 45

Accepted Solution

by:
AndyAinscow earned 1000 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

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

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

In this post we will learn different types of Android Layout and some basics of an Android App.
Changing a few Outlook Options can help keep you organized!
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
Many of my clients call in with monstrous Gmail overloading issues with Outlook. A quick tip is to turn off the All Mail and Important folders from synching. Here is a quick video I made to show you how to turn off these and other folders in Gmail s…

604 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