请教:用vc调用 数据库 在包含ODA库文件时发生了编译错误,给如何解决这个错误?
#import "E:\Program Files\Common Files\System\ado\msado15.dll" no_namespace rename("EOF", "adoEOF")这句代码插入后编译会出现错误:
一、
warning C4146: unary minus operator applied to unsigned type, result still unsigned
对应的错误行是:adCreateStructDoc = -2147483648,
二、
fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>
执行 cl.exe 时出错.
对应的错误行是下面的中间一行:
#ifdef _WINDOWS_
#error WINDOWS.H already included. MFC apps must not #include <windows.h>
#endif