在我的程序中同时使用了两个类库,一个是ADO库,还有一个是msscript库,调用方式如下
#import "C:\Program Files\Common Files\System\ado\msado15.dll" no_namespace rename("EOF","adoEOF")
#pragma warning( disable: 4786)
#import "msscript.ocx" no_namespace
以上代码都放在StdAfx.h文件中,但编译以后给出如下错误提示:
Compiling...
StdAfx.cpp
e:\functionscript\release\msscript.tlh(444) : error C2367: 'Error' : redefinition; different uuid specifiers
      e:\functionscript\release\msado15.tlh(923) : see declaration of 'Error'
Error executing cl.exe.
Creating browse info file...出错的文件内容为
msscript.tlh(444)
struct __declspec(uuid("0e59f1de-1fbe-11d0-8ff2-00a0d10038bc"))
Error;
    // [ default ] interface IScriptError
msado15.tlh
struct __declspec(uuid("00000500-0000-0010-8000-00aa006d2ea4"))
Error : IDispatch请大家帮我分析一下,应该怎么修改