Solved

HRESULT in OLE DB - what does it mean?

Posted on 2002-07-01
3
1,619 Views
Last Modified: 2010-05-18
Dear all!
How can I get the meaning of HRESULT codes in OLE DB?
F.e.
HRESULT hr = RS.SetData();... hr = 265946
HRESULT hr = RS.Update();... hr = -2147467262
HRESULT hr = RS.Insert();... hr = 0
hr = 0 -> DBSTATUS_S_OK - means that everything is OK! but the rest codes....

Is there any documentation with the list of these numbers and descriptions or PROGRAM which can translate this number into something understandible???

PS: I know that in MSDN there are descriptions for DBSTATUS_*_* but there are no numbers. but I don't want to spend my time for switch-case typing... So the answers look in MSDN are not acceptable.
0
Comment
Question by:Masonok
3 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 50 total points
ID: 7121984
See winerror.h

-2147467262 (aka 0x80004002L) means


//
// MessageId: E_NOINTERFACE
//
// MessageText:
//
//  No such interface supported
//
#define E_NOINTERFACE                    _HRESULT_TYPEDEF_(0x80004002L)

0
 
LVL 11

Expert Comment

by:griessh
ID: 7353345
Dear Masonok

I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. You can always request to keep this question open. But remember, experts can only help you if you provide feedback to their questions.
Unless there is objection or further activity,  I will suggest to accept

     "jkr"

comment(s) as an answer.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
======
Werner
0
 
LVL 6

Expert Comment

by:Mindphaser
ID: 7419737
Force accepted

** Mindphaser - Community Support Moderator **
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

705 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

15 Experts available now in Live!

Get 1:1 Help Now