倍数与因数说课稿:如何编写才能使vb程序中打开其他的程序及文件

来源:百度文库 编辑:神马品牌网 时间:2024/05/14 13:11:03
教教我

用API:

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

ShellExecute Me.hwnd, "open", "C:\Hello.jpg", "", "", 5