I have two short questions related to importing and using ADO in a C ++ project. I do not experience ADO in any form.
Firstly, so far the database aspect of my program should only run on Windows. Is it enough to check if _WIN32 or _WIN64 were defined before running the special ADO code, or are there more efficient approaches? I am using Visual C ++ 2010 Express as my compiler.
Secondly, I follow this page as my guide. I have included the #import instruction for msado15.dll. The #import directive is underlined in red, and the error I get when I hover over it says: "... cannot open the path to the source file / in / msado15.tlh", and any ADO files that I copy to the source code remain red. I checked the directory indicated in the error message, and msado15.tlh is, if that matters. In addition, the program compiles (it crashes, although after its execution, but I will diagnose something else separately).
I pretty much don't know why this is happening. Any help or advice would be appreciated.
source
share