I am trying to open a file through an API callout, and i am getting errors. Can someone help? Is there an easier way?
Public 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
'here is my code to call it
Dim File As String
File = Path + List1.Text
Call ShellExecute(Me.hwnd, "Open", "RhinoScriptEditor.exe", File, "C:\Program Files\RhinoScript Editor\", vbNormalNoFocus)
Public 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
'here is my code to call it
Dim File As String
File = Path + List1.Text
Call ShellExecute(Me.hwnd, "Open", "RhinoScriptEditor.exe", File, "C:\Program Files\RhinoScript Editor\", vbNormalNoFocus)