Advertisement

07.24.2008 at 05:52AM PDT, ID: 23591847
[x]
Attachment Details

Get IMAPI2 error string

Asked by mrwad99 in C++ Programming Language, Windows Programming, Windows MFC Programming

Ah hello.

I would like to know if there is any method, apart from a huge self-written switch statement, to obtain the descriptive string associated with an IMAPI2 error.  For example

E_IMAPI_RECORDER_MEDIA_NO_MEDIA = "There is no media in the device." (value of 0xC0AA0202)

I thought that

_com_error_(<erroneous HRESULT>).ErrorMessage()

would do the trick, but it always comes back with "Unknown error".

Any ideas?

TIAStart Free Trial
 
Loading Advertisement...
 
[+][-]07.24.2008 at 06:15AM PDT, ID: 22078731

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.24.2008 at 06:27AM PDT, ID: 22078832

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.27.2008 at 04:36AM PDT, ID: 22098059

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: C++ Programming Language, Windows Programming, Windows MFC Programming
Sign Up Now!
Solution Provided By: mrwad99
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_EXPERT_20070906