Re: Class Not registered error



bhatnagar.alok@xxxxxxxxx schrieb:
Hello All,

In my application i am trying to create access database.
I am creating an instance of catalogptr using "CreateInstance". It
gets created successfully. After that when I create the database using
"Create" function, It gives me an exception saying "Class not
registered".

My connection string is:
"Provider='Microsoft.Jet.OLEDB.4.0';Data Source='d:\info.mdb';" and
the OS i am getting error on is Windows 2003 enterprise edition.

hr = m_pCatalog.CreateInstance(__uuidof(Catalog));
if(SUCCEEDED(hr))
{
m_pCatalog->Create(strConnectionString);

4th line gives the exception.

Can anybody tell me the problem??

Rgds
Alok Bhatnagar

The single quotes in your connection string look suspicious
to me. I'd try

"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\info.mdb;"
.