Aug 26, 2011 at 4:33am UTC
Can anybody show me how to do this quickly please?
I just want to click a control and for it to launch an application...
private : System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { }
What can I put in the brackets to make it run a program when I click button1?
I did put
system("C:\\Users\\Ben\\Documents\\FineReader.exe" );
But this launches cmd.exe before launching Finereader.exe. I just want it to run Finereader. I've been stuck on this for a while now feeling dejected hope someone can help! Thx!
ben
Last edited on Aug 26, 2011 at 4:33am UTC
Aug 26, 2011 at 11:50am UTC
in Windows:
ShellExecute(handle, "open", "C:\\Users\\Ben\\Documents\\FineReader.exe", NULL, NULL, SW_SHOWNORMAL);