VB调用Fortran生成的exe文件有问题
用VB调用Fortran生成的exe文件,文件夹和路径都没有问题,exe直接双击可以打开,但是调用的时候闪一下就没了,各位大佬,这是怎么回事附上我的代码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
Private Sub Command1_Click()
ShellExecute Me.hWnd, "open", App.Path & "\wafdut14\WAFDUT14.exe", "-console", "", 1
End Sub
拜托拜托