I have a C++ driver I’m trying to compile, and it has this line in the code:
#import 'msado15.dll' no_namespace rename('EOF', 'EndOfFile')
But when I compile the project, I get the error:
Error 1 fatal error C1083: Cannot open type library file: ‘msado15.dll’: No such file or directory
I have the DLL, but where do I put it so that the compiler can see it?
You can place the DLL in the same path as the referencing file (.h) as you have done, alternatively you can modify the additional include paths for the LIB section of your project(s). In VC++ this will be:
Project | Properties | Configuration Properties | Linker | General | Additional Library Directories
This method can be useful if you are centralizing third party dependencies and you don’t want to be forced to keeping the referenced file (.h) and DLL in sync via the same path.
See this MSDN link for further details.