return value CoCreateInstance not documented in MSDN

This is a discussion on return value CoCreateInstance not documented in MSDN within the C++ Programming forums, part of the General Programming Boards category; Hello everyone, The return value of CoCreateInstance is -2146232576, which is un-documented in MSDN. http://msdn2.microsoft.com/en-us/library/ms686615.aspx What does it mean? What ...

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    1,579

    return value CoCreateInstance not documented in MSDN

    Hello everyone,


    The return value of CoCreateInstance is -2146232576, which is un-documented in MSDN.

    http://msdn2.microsoft.com/en-us/library/ms686615.aspx

    What does it mean? What is wrong with my code?

    Code:
    HRESULT hr = CoCreateInstance(CLSID_MyDriver,
    			NULL,
    			CLSCTX_INPROC_SERVER,
    			IID_IMyDriver,
    			reinterpret_cast<void**>(&driver_interface));
    
    if (FAILED(hr))
    {
    	if (hr == REGDB_E_CLASSNOTREG)
    	{
    		printf("Couldn't create the instance!... 0x%x\n", hr);
    	}
    	else if (hr == CLASS_E_NOAGGREGATION)
    	{
    		printf("Couldn't create the instance!... 0x%x\n", hr);
    	}
    	else if (hr == E_NOINTERFACE)
    	{
    		printf("Couldn't create the instance!... 0x%x\n", hr);
    	}
    	else if (hr == S_OK)
    	{
    		printf("Couldn't create the instance!... 0x%x\n", hr);
    	}
    	else
    	{
    		printf("Couldn't create the instance!... 0x%x\n", hr);
    	}
    }

    thanks in advance,
    George

  2. #2
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,308
    Convert that to hex: 0x80131700 Then Google it.

    It seems to be something .NET related. It's an undocumented error code alright. In fact I can't find any error text description or error code name anywhere. I don't see any threads that give any answers other than make sure you are using an administrator account, and reinstalling .NET.

    I don't think MS want us to know what that error code means.
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Code review
    By Elysia in forum C++ Programming
    Replies: 71
    Last Post: 05-13-2008, 09:42 PM
  2. Another weird error
    By rwmarsh in forum Game Programming
    Replies: 4
    Last Post: 09-24-2006, 10:00 PM
  3. Why only 32x32? (OpenGL) [Please help]
    By Queatrix in forum Game Programming
    Replies: 2
    Last Post: 01-23-2006, 01:39 PM
  4. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12:34 PM
  5. opengl help
    By heat511 in forum Game Programming
    Replies: 4
    Last Post: 04-05-2004, 01:08 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21