Does anyone know how to call an executable from within Visual C++ 2005
Express (using the CLR)?
For example, click Button1 to launch Microsoft Paint:
System::Void Button1_Clicked(System::Object^ sender, System::EventArgs^
e)
{
// what can I use to open MS Paint?
}
Thanks.
Greg Young - 28 Jun 2006 22:18 GMT
Use the Start method on the System.Diagnostics.Process class ...
http://msdn2.microsoft.com/en-us/library/system.diagnostics.process.aspx
Cheers,
Greg Young
MVP - C#
http://codebetter.com/blogs/gregyoung
> Does anyone know how to call an executable from within Visual C++ 2005
> Express (using the CLR)?
[quoted text clipped - 8 lines]
>
> Thanks.