I'm making this program, where I would like to run my executable file from Visual Studio C++ which is a color detection using webcam. but when I try to call the executable file, there's no error but It pops to another window. Which I want it to run on the PictureBox tool.
heres my code:
Public Class Form1
Public Touchless1 As New TouchlessLib.TouchlessMgr
Public Camera1 As TouchlessLib.Camera = Touchless1.Cameras.ElementAt(0)
Private Property RetVal As Integer
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Touchless1.CurrentCamera = Camera1
Touchless1.CurrentCamera.CaptureHeight = 480
Touchless1.CurrentCamera.CaptureWidth = 640
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
'I deactivate this code for the camera.exe could run
'cause when This code is activated camera.exe would return a value of NULL
'PictureBox1.Image = Touchless1.CurrentCamera.GetCurrentImage
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
'HERE IS THE CALLING OF EXECUTABLE FILE I MADE FROM VISUAL STUDIO C++
RetVal = Shell("C:\Special Prob\HSV Detection Red\Debug\camera.exe", vbNormalFocus)
End Sub
End Class
===========
How Could I make it run inside the PictureBox when I click the Button1?
Please help me here sir...
heres my code:
Public Class Form1
Public Touchless1 As New TouchlessLib.TouchlessMgr
Public Camera1 As TouchlessLib.Camera = Touchless1.Cameras.ElementAt(0)
Private Property RetVal As Integer
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Touchless1.CurrentCamera = Camera1
Touchless1.CurrentCamera.CaptureHeight = 480
Touchless1.CurrentCamera.CaptureWidth = 640
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
'I deactivate this code for the camera.exe could run
'cause when This code is activated camera.exe would return a value of NULL
'PictureBox1.Image = Touchless1.CurrentCamera.GetCurrentImage
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
'HERE IS THE CALLING OF EXECUTABLE FILE I MADE FROM VISUAL STUDIO C++
RetVal = Shell("C:\Special Prob\HSV Detection Red\Debug\camera.exe", vbNormalFocus)
End Sub
End Class
===========
How Could I make it run inside the PictureBox when I click the Button1?
Please help me here sir...