Strange HRESULT code

Hi to all members.

Sorry for off-topic question, but I couldn’t find what HRESULT code means.

One program (not mine) calls CoCreateInstance() with CLSID_FilgraphManager
and IID_IGraphBuilder to use some DirectShow stuff (for playing movies). The
first call is successful, but the second one failes. And this fail is not
checked therefore the program crashes trying to use NULL interface pointer
(that is absolutely correct because CoCreateInstance failed).

I ran this program under debugger and that’s what I saw:
CoCreateInstance() returns error code 0x8007000 which I couldn’t decode and
NULL interface pointer.

So there’s my question: what does 0x8007000 code mean???

Many thanks in advance. I hope for your competent help.

WBR,
Konstantin Manurin
Programmer
Nival Interactive
mailto:xxxxx@nival.com

10a bld. 5, 1st Volokolamsky proezd
Moscow 123060 Russia
Tel: +7 (095) 363-9630
Fax: +7 (095) 363-9631
http://www.nival.com
http://www.etherlords.com
http://www.evil-islands.com

For these sort of questions, there are couple of very good COM/ATL discussion groups at :

http://discuss.develop.com
http://discuss.microsoft.com

HRESULT error codes are defined in winerror.h
Among these :

#define E_ACCESSDENIED HRESULT_TYPEDEF(0x80070005L)
#define E_OUTOFMEMORY HRESULT_TYPEDEF(0x8007000EL)

----- Original Message -----
From: “Konstantin Manurin”
To: “NT Developers Interest List”
Sent: Friday, April 25, 2003 11:30 AM
Subject: [ntdev] Strange HRESULT code

> Hi to all members.
>
> Sorry for off-topic question, but I couldn’t find what HRESULT code means.
>
> One program (not mine) calls CoCreateInstance() with CLSID_FilgraphManager
> and IID_IGraphBuilder to use some DirectShow stuff (for playing movies). The
> first call is successful, but the second one failes. And this fail is not
> checked therefore the program crashes trying to use NULL interface pointer
> (that is absolutely correct because CoCreateInstance failed).
>
> I ran this program under debugger and that’s what I saw:
> CoCreateInstance() returns error code 0x8007000 which I couldn’t decode and
> NULL interface pointer.
>
> So there’s my question: what does 0x8007000 code mean???
>
> Many thanks in advance. I hope for your competent help.
>
> WBR,
> Konstantin Manurin
> Programmer
> Nival Interactive
> mailto:xxxxx@nival.com
>
> 10a bld. 5, 1st Volokolamsky proezd
> Moscow 123060 Russia
> Tel: +7 (095) 363-9630
> Fax: +7 (095) 363-9631
> http://www.nival.com
> http://www.etherlords.com
> http://www.evil-islands.com
>
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@compaqnet.be
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

Scan the Win32 and DirectShow headers for this value.

----- Original Message -----
From: “Konstantin Manurin”
To: “NT Developers Interest List”
Sent: Friday, April 25, 2003 1:30 PM
Subject: [ntdev] Strange HRESULT code

> Hi to all members.
>
> Sorry for off-topic question, but I couldn’t find what HRESULT code
means.
>
> One program (not mine) calls CoCreateInstance() with
CLSID_FilgraphManager
> and IID_IGraphBuilder to use some DirectShow stuff (for playing
movies). The
> first call is successful, but the second one failes. And this fail
is not
> checked therefore the program crashes trying to use NULL interface
pointer
> (that is absolutely correct because CoCreateInstance failed).
>
> I ran this program under debugger and that’s what I saw:
> CoCreateInstance() returns error code 0x8007000 which I couldn’t
decode and
> NULL interface pointer.
>
> So there’s my question: what does 0x8007000 code mean???
>
> Many thanks in advance. I hope for your competent help.
>
> WBR,
> Konstantin Manurin
> Programmer
> Nival Interactive
> mailto:xxxxx@nival.com
>
> 10a bld. 5, 1st Volokolamsky proezd
> Moscow 123060 Russia
> Tel: +7 (095) 363-9630
> Fax: +7 (095) 363-9631
> http://www.nival.com
> http://www.etherlords.com
> http://www.evil-islands.com
>
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to
xxxxx@lists.osr.com