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