How do I reference a DLL in a VC++ project

后端 未结 6 2009
野性不改
野性不改 2021-02-03 13:42

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\")
6条回答
  •  佛祖请我去吃肉
    2021-02-03 14:01

    For VC++2010(VS2010): the compiler is not able to see the msado15.dll
    which is located at C:\Program Files\Common Files\System\ado

    Go to Project | Properties | Configuration Properties | VC++ Directories and add the following at executable directories

    $(CommonProgramFiles)\System\ado;

    You should be fine

提交回复
热议问题