title: how to read data from mdb-files using c++?
body: <p>I have to read data from mdb-files using c++ but I'm having trouble getting started. I found <a href="http://www.kbcafe.com/articles/HowTo.ADO.CPlusPlus.pdf" rel="nofollow">this</a> tutorial, but my code always crashes when I try to connect to a local database file. </p>
  
  <pre><code>ADO::_ConnectionPtr conn;
  conn.CreateInstance( __uuidof( ADO::Connection ) ); 
  conn-&gt;Open( L"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\database.mdb;", 
                          L"", 
                          L"password", 
                          ADO::adConnectUnspecified);
  </code></pre>
  
  <p>Is there anything wrong with the code above?</p>