Home > Software engineering >  VB call an external application problems, calling other external program no problem, call wen tong r
VB call an external application problems, calling other external program no problem, call wen tong r

Time:09-27

The problem of VB call an external application, invoke other external program no problem, call wen tong recognition program out, solving
The source code download http://pan.baidu.com/s/1bohMI9x
Trouble which help see

CodePudding user response:

"To which step you do not, at least give some code or problem point? Indicate the expected what kind, the actual quote what's wrong,

CodePudding user response:

Direct call shouldn't be a problem,
Is likely to be behind the program needs to take parameters to get in

If there is one shortcut, you can have a look at the shortcut properties, is there any running parameters

CodePudding user response:

 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 Command2_Click ()
ShellExecute Me HWND, "open", "explorer", ": : {20 d04fe0-3 aea - 1069 - b30309d A2D8-08002}", vbnulstring, 1
End Sub

Private Sub Command3_Click ()
'Shell App. Path & amp; "\ licecap \ licecap1.24 localization exe," vbMaximizedFocus
Dim r, s As Long
S=ShellExecute (0, "open", the App. The Path & amp; "\ licecap \ licecap1.24 localization exe", 0, 0, 1)
End Sub

Private Sub Command4_Click ()
Shell App. Path & amp; "\ red candle electronic pointer \ red candle pointer. Exe", vbNormalFocus
End Sub

Private Sub Command5_Click ()
'Shell App. Path & amp; "\ wentong \ wentong exe," vbNormalNoFocus

'Dim As a Integer
'a=Shell (App. Path & amp; "\ wentong \ wentong exe," vbNormalFocus)

Dim r, s As Long
'r=ShellExecute (0, "open", "http://www.ifeng.com", 0, 0, 1)
's=ShellExecute (0, "open", the App. The Path & amp; "\ wentong \ wentong exe", 0, 0, 1)

Shell App. Path & amp; "\ wentong \ wentong exe" to run the program

End Sub

Took a shortcut and no parameter
Other external program calls no problem, that is, wen tong won't call
And don't know what reason be?

CodePudding user response:

On the attachment, has all the code and external programs

CodePudding user response:

More than 100 M... Won't be free next
You command line running can run
?If you can
Build a bat, vb run the bat.