Quoted form This form instructs the preprocessor to first look for type library files in the same directory of the file that contains the #import statement, and then in the directories of whatever files that include (#include) that file. The preprocessor then searches along the paths shown below. Angle-bracket form This form instructs the preprocessor to search for type library files along the paths shown below. The compiler will search in the following directories for the named file: the PATH environment variable path list the LIB environment variable path list the path specified by the /I (additional include directories) compiler option
系统路径,环境变量路径,应用程序路径,应用程序工作路径.
正常是这个DLL已经在系统里有注册,所以你在高用该DLL提供的接口函数的时候系统就根据CLSID找到DLL所在的完整路径了.
这里#import "msado15.dll"的时候只是在你开发的时候有用,而完成编译生成可执行程序以后这个就没有任何用了.因为在编译的时候将需要的所以在东西都已经编入你的程序里了.
This form instructs the preprocessor to first look for type library files in the same directory of the file that contains the #import statement, and then in the directories of whatever files that include (#include) that file. The preprocessor then searches along the paths shown below. Angle-bracket form
This form instructs the preprocessor to search for type library files along the paths shown below.
The compiler will search in the following directories for the named file: the PATH environment variable path list
the LIB environment variable path list
the path specified by the /I (additional include directories) compiler option
dll路径
当前路径
system32
system
windows