我怎么没有出现这个问题?
f:\ado\debug\msado15.tlh(403) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
这个是正常的
但是后面的就从来没见过。你的VC是什么版本啊?

解决方案 »

  1.   

    问题很奇怪,一般呢,windows.h在stdafx.h中已经包含了,怎么有这种错误呢?
        用这个试试
    在InitInstance()中加入 
       AfxOleInit();  //初始化OLE/COM库环境   然后,在stdafx.h中
        #include 〈comdef.h〉 
       #import "c:\program files\common files\system\ado\msado15.dll"
       no_namespace 
       rename ("EOF","adoEOF")   
      

  2.   

    我用的是VC++6,我试了一下,还是不行。我是把这些申明加在stdafx.h文件中内容的前面的,是不对具体位要有要求