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 Command1_Click() Dim strUrl As String strUrl = "http://wpa.qq.com/msgrd?V=1&Uin=42102845&Site=www.cnking.cn&Menu=yes" ShellExecute hwnd, "Open", strUrl, "", "", 1 End Sub
Private Sub Command1_Click()
Dim strUrl As String
strUrl = "http://wpa.qq.com/msgrd?V=1&Uin=42102845&Site=www.cnking.cn&Menu=yes"
ShellExecute hwnd, "Open", strUrl, "", "", 1
End Sub