在VB中,如何使用shellexecute,使得用默认浏览器打开网页
2个回答
展开全部
展开全部
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 r As Long
r = ShellExecute(0, "open", "http://www.baidu.com", 0, 0, 1)
End Sub
'声明
Private Sub Command1_Click()
Dim r As Long
r = ShellExecute(0, "open", "http://www.baidu.com", 0, 0, 1)
End Sub
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询