Skip to main content
GameDev.net gamedev.net
🔒 Locked

COM CoCreateInstance() error

Started by citizen3019 Oct 16, 2003 at 1:53 PM 2 replies 2k views
Original Post
citizen3019
citizen3019
hello, running: VC6 SP5 on WIN2K lastest SP calling CoCreateInstance() returns: error -2147221008 (0x800401f0 for you hex fans) The error is not the problem but rather that I cannot find what it means. MSDN Platform SDK states only three return values: REGDB_E_CLASSNOTREG -2147221164(0x80040154) CLASS_E_NOAGGREGATION -2147221232(0x80040110) and... S_OK 0L(I believe) if someone can retrieve or point me toward the COM error code page that contains this value (NOT the WIN32 error code as sometimes MS let''s OLE and WIN32 codes overlap) it would help much! Thank you in advance,
Nik02
Nik02
It seems that you have not called CoInitialize().
The error is named CO_E_NOTINITIALIZED.

[edited by - Nik02 on October 16, 2003 3:34:58 PM]
Niko Suni
citizen3019
citizen3019
quote:
Original post by Nik02
What class are you trying to instantiate?

EDIT:
Would this be of any help?

[edited by - Nik02 on October 16, 2003 3:29:19 PM]


YES, YES, YES!!!
THANK YOU, THANK YOU, THANK YOU!!!

Forgive my enthusiasm but what did you search for specifically because I hunted through my MSDN (v6a) and I got pissed off at the MSDN online (too much coffee today).

I was trying to grab an instance of a DxPlay8 iserver and I know I should have posted in the DirectX forum but I like this forum btr....

Thnx,
Nik02
Nik02
I grep'd the windows headers for the hex code.
The error is defined in winerror.h.

Glad i could help!

-Nik

EDIT: Google found that link, based on the error name.

[edited by - Nik02 on October 16, 2003 3:41:09 PM]
Niko Suni

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.