我想用VB6.0调用Fortran生成的exe文件,但是这个exe运行需要读取它所在文件夹内的文本txt文件,这种情况应该怎么做
附上我的代码
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 LongPrivate Sub Command1_Click()
ShellExecute Me.hWnd, "open", App.Path & "\wafdut14\WAFDUT14.exe", "-console", "", 1
End Sub拜托拜托
附上我的代码
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 LongPrivate Sub Command1_Click()
ShellExecute Me.hWnd, "open", App.Path & "\wafdut14\WAFDUT14.exe", "-console", "", 1
End Sub拜托拜托
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货