大家好,我在CodeProject上看到一个ADO封装类。
地址是:
http://www.codeproject.com/Articles/1075/A-set-of-ADO-classes-version-2-20
我下载之后,在Win7 sp1 + vs2008的环境下编译出现很多错误:
1>Make sure you go to Tools.Options.Directories.Library files and add the paths to msado15.dll and msjro.dll will usually be in C:\Program Files\Common Files\System\ado
1>e:\workproject\adoclasstest\adoclasstest\debug\msjro.tlh(196) : error C2146: syntax error : missing ';' before identifier 'ConflictTables'
1>e:\workproject\adoclasstest\adoclasstest\debug\msjro.tlh(196) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\workproject\adoclasstest\adoclasstest\debug\msjro.tlh(196) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\workproject\adoclasstest\adoclasstest\debug\msjro.tlh(224) : error C2146: syntax error : missing ';' before identifier 'GetConflictTables'
1>e:\workproject\adoclasstest\adoclasstest\debug\msjro.tlh(224) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\workproject\adoclasstest\adoclasstest\debug\msjro.tlh(224) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\workproject\adoclasstest\adoclasstest\debug\msjro.tlh(224) : warning C4183: 'GetConflictTables': missing return type; assumed to be a member function returning 'int'
1>e:\workproject\adoclasstest\adoclasstest\debug\msjro.tli(111) : error C2143: syntax error : missing ';' before 'IReplica::GetConflictTables'
1>e:\workproject\adoclasstest\adoclasstest\debug\msjro.tli(111) : error C2433: '_RecordsetPtr' : 'inline' not permitted on data declarations
1>e:\workproject\adoclasstest\adoclasstest\debug\msjro.tli(111) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
...
我想问下坛子里的大神们,谁在Win7 sp1 + vs2008的环境下用过这个类,最好是Unicode的工程。能不能帮助一下俺小菜。谢谢。