请问谁看过《ATL COM 和 ADO》这篇文章? 因为这篇文章的例子是用VB写的,我改为用VC 6.0做客户端出现如下错误:
error C2146: syntax error : missing ';' before identifier 'ReadFromFile'
error C2501: '_RecordsetPtr' : missing storage-class or type specifiers
error C2143: syntax error : missing ';' before 'tag::id'
error C2433: '_RecordsetPtr' : 'inline' not permitted on data declarations
error C2501: '_RecordsetPtr' : missing storage-class or type specifiers
fatal error C1004: unexpected end of file found请问那位达人这是怎么回事? 请哪位哥们帮帮忙吧,另外还有一篇一起200分了,倾家荡产了

解决方案 »

  1.   

    我看的是这篇文章:http://www.codeproject.com/atl/atl_ado.asp
    因为这文章是用VB写的客户端,我改用VC客户端调用文章的控件出现的这个问题,不知怎么回事?
    我已在我程序的Stdafx.h中添加了:
    #import "..\FindCust\FindCust.tlb" no_namespace#import "C:\program files\common files\system\ado\msado15.dll" no_namespace rename("EOF","adoEOF")
    能否请哪位哥们看看这篇文章,改个VC的客户端发给我? [email protected]
    谢谢了
    中文版的有这个:http://www.vckbase.com/document/viewdoc/?id=1260