从我xp的电脑copy代码到新的win7后,build时就报这样的错误,请高手们帮忙给看看~~
Linking...
LINK : warning LNK4075: ignoring /EDITANDCONTINUE due to /INCREMENTAL:NO specification
Global.obj : error LNK2001: unresolved external symbol "public: long __thiscall Recordset15::Open(class _variant_t const &,class _variant_t const &,enum CursorTypeEnum,enum LockTypeEnum,long)" (?Open@Recordset15@@QAEJABV_variant_t@@0W4CursorTypeEnum
@@W4LockTypeEnum@@J@Z)
Param2Cfg.obj : error LNK2001: unresolved external symbol "public: long __thiscall Recordset15::Open(class _variant_t const &,class _variant_t const &,enum CursorTypeEnum,enum LockTypeEnum,long)" (?Open@Recordset15@@QAEJABV_variant_t@@0W4CursorTypeE
num@@W4LockTypeEnum@@J@Z)
Param2Cfg.obj : error LNK2001: unresolved external symbol "public: class _com_ptr_t<class _com_IIID<struct Fields,&struct __s_GUID _GUID_00001564_0000_0010_8000_00aa006d2ea4> > __thiscall Recordset15::GetFields(void)" (?GetFields@Recordset15@@QAE?AV
?$_com_ptr_t@V?$_com_IIID@UFields@@$1?_GUID_00001564_0000_0010_8000_00aa006d2ea4@@3U__s_GUID@@A@@@@XZ)
..\run\SIDSConfiger.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.SIDSConfiger.exe - 4 error(s), 1 warning(s)

解决方案 »

  1.   

    C:\Program Files\Common Files\System\ADO\msado15.dll
    这个路径不对,改成你win7系统下的msadoxx.dll所在的路径
      

  2.   

    没用过win7,不知道那个文件在什么目录下,你自己搜搜
      

  3.   

    #import "C:\Program Files\Common Files\System\ADO\msado15.dll" 
    改成你的路径
      

  4.   

    我搜的msado15也是这个路径啊,而且程序里没有这句啊
      

  5.   

    从xp改到win7,如果不涉及到库或ocx控件的话,一般不会有什么问题,例如,如果涉及到ocx,直接copy就不行,我就遇到过这样的问题,需要改win7工程里的属性等等。如果还是不行的话,可以在网上搜索win7的解决方法,一般网上都会有。
      

  6.   

    将XP上的msado15.dll拷贝到win7对应的文件夹下,如果没问题,那就证明是ado的问题