建一个SDI,并在最后一步的时候选CHtmlView为视图类
然后随便那里放个菜单
在OnXXXXXX()里写:Navigate("10.10.1.98/cgi-bin/register?stu_no=abc+passwd=123456");就好了

解决方案 »

  1.   

    error C2065: 'Navigate' : undeclared identifier
      

  2.   

    ShellExecute(0,"Open","http://10.10.1.98/cgi-bin/register?stu_no=abc+passwd=123456",NULL,NULL,SW_SHOW);
      

  3.   

    更正:
     
    ShellExecute(0,"Open","http://10.10.1.98/cgi-bin/register?stu_no=abc&passwd=123456",NULL,NULL,SW_SHOW);
     
     
      

  4.   

    选CHtmlView为视图类这一步你做了吗
      

  5.   

    The class CHttpConnection contains a constructor and one member function, OpenRequest, that manages connections to a server with an HTTP protocol.
      

  6.   

    http://www.csdn.net/expert/topic/509/509207.xml
      

  7.   

    这样提交是不对的,应该方法不对,http://10.10.1.98/cgi-bin/register?stu_no=abc+passwd=123456是GET方法,而是表单提交是POST方法。
      

  8.   

    建议你看一下http协议中关于post的内容
      

  9.   

    在哪里看http协议中关于post的内容啊?
      

  10.   

    上面提到的方法我试过,如果在表单中没有用到Script,这样做是可以的.但是大部分网页都加入了验证用户名和密码是否合法的Script,如下面是Chinaren的表单
    <form name=FM action="http://login.chinaren.com/zhs/servlet/Login" onSubmit="if(!ChkLogin())return false;if(document.FM.wp.checked)document.FM.url.value+='&wp=1';" method=POST>
    由于它加入了OnSubmit,所以上述的方法就不管用了,我也一直不知道该怎么做,还麻烦大家多帮帮忙吧.
      

  11.   

    吐血推荐,一定要看
    http://www.flashsky.com/flash-content.asp?id=4453