title: C++ importing and using ADO
body: <p>I have two short questions involving importing and using ADO in a C++ project. I am not experienced with ADO in any form.</p>
  
  <p>First, for the time being the database aspect of my program need only run on Windows. Is it enough to test if _WIN32 or _WIN64 is defined before running ADO specific code, or are there better approaches? I am using Visual C++ 2010 Express as my compiler.</p>
  
  <p>Second, I am following <a href="http://www.cprogramming.com/tutorial/intro_to_ado_in_c++.html" rel="nofollow">this page</a> as my guide. I've included the #import statement for msado15.dll. The #import directive is underlined red, and the error I receive when hovering over it says "...cannot open source file path/to/msado15.tlh," and any ADO stuff I copy into the source stays red underlined. I've checked the directory listed in the error message and msado15.tlh is there, if that matters. Also, the program compiles (it crashes though after executing, but that's something else I'll diagnose separately).</p>
  
  <p>I'm pretty clueless about why this is happening. Any help or advice would be appreciated.</p>