我现在StdAfx.h中引用了
#import "c:\program files\common files\system\ado\msado15.dll" no_namespace rename("EOF","adoEOF")但是编译时报错,好像说枚举重定义?
e:\vc程序\c_adooption3\debug\msado15.tlh(169) : error C2011: 'LockTypeEnum' : 'enum' type redefinition
小弟不才,大侠们见笑了。
请大侠们帮帮我,或者给各例子,谢谢。

解决方案 »

  1.   

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

  2.   

    报错啊
    fatal error C1083: Cannot open type library file: 'c:\\program files\\common files\\system\ado\\msado15.dll': No such file or directory
      

  3.   

    明白了,是不是在DLL中不能引用#import 对象?
    在工程(.exe)中引用没有问题。