如:
用VB做一个QQ强制聊天软件,用了下面的代码。在后台运行,不让IE打开。
首先必须声明以下函数:
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