7,539
社区成员
发帖
与我相关
我的任务
分享
ProgramFiles是直接指向C:/Program Files(x86)的吧,毕竟VS都是x86的[/quote]
#include的问题不大,大不了把带和不带X86的都加到路径列表中。我的程序中还导出了ADO的东西,这个是用的是绝对路径。要根据环境改变路径就比较麻烦。如果实在不行,我就把ado目录拷贝到我的工程中去。看看有没有别的更灵活的办法。
#pragma message ("Make sure you go to Tools.Options.Directories.Library files and add the paths to msado15.dll and msjro.dll will usually be in C:\\Program Files\\Common Files\\System\\ado")
#import "C:\Program Files\Common Files\System\ado\msado15.dll" rename("EOF", "EndOfFile")
#import "C:\Program Files\Common Files\System\ado\MSJRO.DLL" no_namespace rename("ReplicaTypeEnum", "_ReplicaTypeEnum")
