Solved

MAPIInitialize failed and get an error message

Posted on 2007-04-10
2
819 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
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Set OWA language and time zone in Exchange for individuals, all users or per database.
Resolve Outlook connectivity issues after moving mailbox to new Exchange 2016 server
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now