Re: Sql SP1: Failed to initialize the provider
- From: Cloud Strife <C_strife@xxxxxxxxxx>
- Date: Thu, 23 Oct 2008 09:54:24 +0200
Laxmi Narsimha Rao Oruganti ha scritto:
Just call WIN32 API CoCreateInstance with CLSID_SQLSERVERCE and you need to include sqlce_oledb.h. and see if you have really got the class instance back and also validate HRESULT.
Thanks,
Laxmi
Hi Laxmi,
thank you very much for your help
here is the code I used for testing:
// ----------------------------------------------------
CoInitializeEx(NULL, COINIT_MULTITHREADED);
CoCreateInstance(CLSID_SQLSERVERCE, NULL, CLSCTX_INPROC_SERVER, IID_IUnknown, (void **)&pDSO);
// ----------------------------------------------------
The call to CoInitializeEx returns with S_OK, while the second one returns with "0x80040154 (not registered interface)".
And now? There's a way to fix this problem?
Thanks
.
- Follow-Ups:
- Re: Sql SP1: Failed to initialize the provider
- From: Laxmi Narsimha Rao Oruganti
- Re: Sql SP1: Failed to initialize the provider
- References:
- Sql SP1: Failed to initialize the provider
- From: Cloud Strife
- Re: Sql SP1: Failed to initialize the provider
- From: Laxmi Narsimha Rao Oruganti
- Re: Sql SP1: Failed to initialize the provider
- From: Cloud Strife
- Re: Sql SP1: Failed to initialize the provider
- From: Laxmi Narsimha Rao Oruganti
- Re: Sql SP1: Failed to initialize the provider
- From: Cloud Strife
- Re: Sql SP1: Failed to initialize the provider
- From: Laxmi Narsimha Rao Oruganti
- Sql SP1: Failed to initialize the provider
- Prev by Date: Re: Sql SP1: Failed to initialize the provider
- Next by Date: Re: CompactDatabase made DB grow in size
- Previous by thread: Re: Sql SP1: Failed to initialize the provider
- Next by thread: Re: Sql SP1: Failed to initialize the provider
- Index(es):