这句是delphi写的可以执行通过。
WebBrowser_M.oleobject.document.all.item('loginForm').submit;VC 应该怎么办呢?<form name="loginForm" method="post" action="https://************/DRAGONA_GC_login_ok.asp" onSubmit="return loginFormCk(this);" target="if_login">

解决方案 »

  1.   


    怎么使用呢??   那个登陆的是个图片没法 click
      

  2.   

    void Submit(IHTMLDocument2 *pDocument, CString strID)
    {
         IHTMLElementCollection *AllElement;      // 保存网页所有元素
         pDocument->get_all(&AllElement);         // 得到网页所有元素的集合     CComPtr<IDispatch>pDisp;
         AllElement->item(COleVariant(strID), COleVariant((long)0), &pDisp); // 返回指定 ID 的对象
         CComQIPtr<IHTMLElement,&IID_IHTMLElement>pElement;    if (pDisp == NULL)
            return;    pElement = pDisp;
        pElement->click();

    Submit(objDocument, "loginForm");
    完全没有反应