OleDbConnectionString / Vista

  • Thread starter Thread starter Dr. Patrick Havel
  • Start date Start date
D

Dr. Patrick Havel

Hello *,

in my VC++ program I use the following code to create a connection object:

"m_sCreateString.Format("Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=%s.mdb;Persist Security Info=True;",m_sPfad);"
// Connection Object erstellen
hr = m_pConn.CreateInstance(__uuidof(Connection));"

It works correctly under W2K and XP. Under Windows Vista I get hr=0x80040154
(Class not registered) even if UAC is disabled.
I installed on the machine MDAC 2.8 but it seems to have no effect.

Thanks for any hint!
Patrick
 
If I'm not mistaken, the JET provider is not part of MDAC 2.8. You must
download and install it separately.
 
Back
Top