mwd121请问我的代码错在哪里呀?我就是编译不过.
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
Declare Function GetDesktopWindow Lib "user32" Alias "GetDesktopWindow" () As Long
Sub Click()
Dim Scr_hDC As Long
Dim WorkDir As String
Dim r As Long
Scr_hDC = GetDesktopWindow()
WorkDir = "d:\Work"
r = ShellExecute(Scr_hDC, "Open","g:\gg\Pro.exe", 0&, WorkDir, 3)
End Sub
还有就是我在建立文件的时候,在函数(Function)那一栏就是写不上函数名,我编译的时候他提示我没有合法的入口ID.
mwd121,麻烦你给我做一个手把手教的过程吧,我真的没有办法了.求你了. |