C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include
C:\Program Files\Microsoft Visual Studio 8\VC\ce\atlmfc\include有62k呢

解决方案 »

  1.   

    CComPtr <IDispatch>   spDisp;
    browser-> get_Document(&spDisp);
    CComQIPtr <IHTMLDocument2>   spDoc2   =   spDisp;
    CComQIPtr <IHTMLDocument3>   spDoc3   =   spDoc2;CComPtr <IHTMLElement>   spElem;
    spDoc3-> getElementById(L"inputid",   &spElem);
    CComQIPtr <IHTMLInputElement>   spInput   =   spElem;CComBSTR   bstrPassword;   //   password   will   be   saved   to   here
    spInput-> get_value(&bstrPassword);需要头文件!
      

  2.   

    如果不怕麻烦,可以直接使用接口指针,不用智能指针。
    或者你再看看vc6里面有没有comip.h文件,这里面有另一种智能指针模板:
    typedef _com_ptr_t<&IID_IDispatch> IDispatchPtr;
    以后你就能用IDispatchPtr来代替了
      

  3.   

    D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\atlcomcli.h(16) : fatal error C1083: Cannot open include file: 'atlcore.h': No such file or directory编译提示错误的,楼上的朋友,能提供下你的QQ吗?
      

  4.   

    D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\atlcomcli.h(16) : fatal error C1083: Cannot open include file: 'atlcore.h': No such file or directory
    还是报错!
      

  5.   

    不用QQ很多年了看来你得装个ATL了
      

  6.   

    没用过atl要不你装个vc2003?或者等等看有没有更好的解答