首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VB >

vb登录百度帐号不成功了!高手帮忙解决方法

2012-02-14 
vb登录百度帐号不成功了!高手帮忙测试时请先添加inet控件,commmend控件各一个VB codePrivate Sub Command1

vb登录百度帐号不成功了!高手帮忙
测试时请先添加inet控件,commmend控件各一个


VB code
Private Sub Command1_Click()Dim PostDate As StringPostDate = "username=百度帐号&password=密码"Inet1.Execute "https://passport.baidu.com/?login", "POST", PostDate, "Referer: https://passport.baidu.com/?login&tpl=mn" & vbCrLf & "Content-Type: application/x-www-form-urlencoded"End SubPrivate Sub Inet1_StateChanged(ByVal State As Integer)If State = 12 ThenDim strData As StringDim bDone As Boolean: bDone = FalsevtData = Inet1.GetChunk(1024, icString)Do While Not bDonestrData = strData & vtDataDoEventsvtData = Inet1.GetChunk(1024, icString)If Len(vtData) = 0 ThenbDone = TrueEnd IfLoopText1.Text = strDataEnd IfEnd Sub


[解决办法]
不太能看懂。坐等高手前来解答

热点排行