c++ - How to use windows form application button to run console files in visual studio 2010? -


in project on "gesture recognition" using visual studio 2010 visual c++ , open cv there many win32 console application c++ files training, testing,creating data-set, hmm training,etc.for running file need include file , exclude other files.earlier made on console application want add windows form application project.when add project windows form visual c++ , creating button giving error although have changed properties of common language run time support.is there way how can execute these different .cpp files creating buttons on form application because using c#.

`private: system::void krishna_load(system::object^ sender, system::eventargs^ e) { } private: system::void button1_click(system::object^ sender, system::eventargs^ e) {

         } }; 

} `

if problem visual basic developers, then:

click on button, visual studio generate code you, runs when user clicks the same button in application.

consider following example:

public class form1     private sub button1_click(sender object, e eventargs) handles button1.click         process.start("c:\users\myname\documents\myapp.exe")     end sub end class 

in above mentioned code, except third line, generated automatically visual studio when clicked button named "button1"

when in from1, button1 clicked, starts application myapp.exe inside folder c:\users\myname\documents\

this code should work in project, working me. using code, can run other files also, .mp3 , .mp4 etc.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -