添加了 #import "c:\Program Files\Common Files\SYSTEM\ADO\msado15.dll" no_namespace rename("EOF","ADOEOF") 以后怎么会出现编译警告.

解决方案 »

  1.   

    Msado15.tlh(407) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
    估计是这个错误吧
      

  2.   

    #import "c:\Program Files\Common Files\SYSTEM\ADO\msado15.dll" \ no_namespace rename("EOF","ADOEOF")
      

  3.   

    Microsoft has confirmed that this is a BUG. 
    it has no effect on your application, you can suppress the warning with the following code: #pragma warning(push)
    #pragma warning(disable:4146)
    #import "c:\program files\common files\system\ado\MSADO15.DLL" 
    #pragma warning(pop)
      

  4.   

    好象只要加 #pragma warning(disable:4146) 就可以了.