我的vc6.0怎么找不到ATL Object Wizard?
应该在Insert->New ALT Object?
在线等

解决方案 »

  1.   

    建ADO工程时,用到ATL Object Wizard呀
      

  2.   

    用#import引进类型库#import "c:\program files\common files\system\ado\msado15.dll"noname_namespace rename ("EOF", "adoEOF") 
      

  3.   

    用#import引进类型库不好意思 ,我还不知道在哪引入类库,大侠在告诉一下在哪加入#import "c:\program files\common files\system\ado\msado15.dll"noname_namespace rename ("EOF", "adoEOF") 
    这句?谢谢了
      

  4.   

    #import "c:\program files\common files\system\ado\msado15.dll"noname_namespace rename ("EOF", "adoEOF") 在引用以上的语句时需要注意 msado15.dll 的版本问题,建议把最新版本的 msado15.dll 拷到你所作的工程的目录下,然后语句就可以改写成如下:#import "msado15.dll"noname_namespace rename ("EOF", "adoEOF")
      

  5.   

    在 stdafx.h 中加入此句
      

  6.   

    还是没有ATL Object Wizard
    出现了Insert->FLie AS text
    为什么呀?
      

  7.   

    准备:
    (1)、引入ADO类 #import "c:\program files\common files\system\ado\msado15.dll" \
    no_namespace \
    rename ("EOF", "adoEOF")
    (2)、初始化COM在MFC中可以用AfxOleInit();非MFC环境中用: CoInitialize(NULL);
    CoUnInitialize();(3)#import 包含后就可以用3个智能指针了:_ConnectionPtr、_RecordsetPtr和_CommandPtr