Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. CoCreateInstance initialisation error?

CoCreateInstance initialisation error?

Scheduled Pinned Locked Moved Database
helpdatabasesql-serversysadminquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    P_JAYAPRAKASH
    wrote on last edited by
    #1

    Hey i am trying to use CoCreateInstance();but it is giving failure only. i am very beginner to sql server. what may be the reason for this error. is it because of sql server setup? Please help me. Thanks JP ALL THINGS ARE POSSIBLE UNTIL THEY ARE PROVED IMPOSSIBLE-AND EVEN THE IMPOSSIBLE MAY ONLY BE SO,AS OF NOW

    M 1 Reply Last reply
    0
    • P P_JAYAPRAKASH

      Hey i am trying to use CoCreateInstance();but it is giving failure only. i am very beginner to sql server. what may be the reason for this error. is it because of sql server setup? Please help me. Thanks JP ALL THINGS ARE POSSIBLE UNTIL THEY ARE PROVED IMPOSSIBLE-AND EVEN THE IMPOSSIBLE MAY ONLY BE SO,AS OF NOW

      M Offline
      M Offline
      Mike Dimmick
      wrote on last edited by
      #2

      CoCreateInstance is a COM API; what COM object are you trying to create? Is the object registered? If you're not trying to create an ADO object or a SQL-DMO object, please ask on the COM forum. Stability. What an interesting concept. -- Chris Maunder

      P 1 Reply Last reply
      0
      • M Mike Dimmick

        CoCreateInstance is a COM API; what COM object are you trying to create? Is the object registered? If you're not trying to create an ADO object or a SQL-DMO object, please ask on the COM forum. Stability. What an interesting concept. -- Chris Maunder

        P Offline
        P Offline
        P_JAYAPRAKASH
        wrote on last edited by
        #3

        Thanks for ur reply, I am trying to create OLE-DB provider. But its giving error. Should I register the COM component? I didn't do this. Please help me. ALL THINGS ARE POSSIBLE UNTIL THEY ARE PROVED IMPOSSIBLE-AND EVEN THE IMPOSSIBLE MAY ONLY BE SO,AS OF NOW

        M 1 Reply Last reply
        0
        • P P_JAYAPRAKASH

          Thanks for ur reply, I am trying to create OLE-DB provider. But its giving error. Should I register the COM component? I didn't do this. Please help me. ALL THINGS ARE POSSIBLE UNTIL THEY ARE PROVED IMPOSSIBLE-AND EVEN THE IMPOSSIBLE MAY ONLY BE SO,AS OF NOW

          M Offline
          M Offline
          Mike Dimmick
          wrote on last edited by
          #4

          Typically a provider will be registered properly by its installer, so that's unlikely to be the problem. Have you called CoInitializeEx or OleInitialize on this thread? I suggest checking the return value of CoCreateInstance in winerror.h to see if there's a better description of the error. Stability. What an interesting concept. -- Chris Maunder

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups