VB问题,待解答~~~~~~~急

来源:百度知道 编辑:UC知道 时间:2024/06/27 05:51:09
Shell "explorer" "http://wpa.qq.com/msgrd?V=1&Uin=12345678&Site=ioshenmue&Menu=yes", 1
帮忙把12345678改成变量,我改了后老出错

Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

Private Sub Chat_Click()
Dim qqWAPurl, qqNum As String
qqNum = Text1.Text
qqWAPurl = "http://wpa.qq.com/msgrd?V=1&Uin=" & qqNum & "&Site=ioshenmue&Menu=yes"
ShellExecute Me.hwnd, "Open", qqWAPurl, 0, 0, 0
End Sub