本人在VC中编程,采用的是ADO技术。需要导入链接库
#import "C:\Program Files\Common Files\System\ado\msado15.dll" \ no_namespace rename("EOF" , "EndOfFile")
但是编译时出现一下错误,请大师知道!!多谢!!一定加分!!
e:\paper\flightsimulationme\stdafx.h(25) : error C2017: illegal escape sequence
e:\paper\flightsimulationme\debug\msado15.tlh(405) : warning C4146: unary minus operator applied to unsigned type, result still unsigned

解决方案 »

  1.   

    #import "c:\program files\common files\system\ado\msado15.dll" no_namespace rename("EOF","adoEOF")好像中间没有'\'吧
      

  2.   

    你改成这样试试看可以吗?#import "c:\program files\common files\system\ado\msado15.dll" no_namespace rename("EOF","adoEOF")
      

  3.   

    刚才按照上面你说的修改过了,还有有一个编译错误
    warning C4146: unary minus operator applied to unsigned type, result still unsigned
      

  4.   

    再加一句:
    #pragma warning(disable:4146)
      

  5.   

    #import "c:\program files\common files\system\ado\msado15.dll" no_namespace rename("EOF", "EndOfFile") rename("BOF","FirstOfFile")
      

  6.   

    刚才按照上面你说的修改过了,还有有一个编译错误
    warning C4146: unary minus operator applied to unsigned type, result still unsigned
    不必考虑,都是有这个问题