Solved

HRESULT in OLE DB - what does it mean?

Posted on 2002-07-01
3
1,688 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
[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
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

691 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