Visual c++ 如何在visual c+中通过单击按钮运行exe文件+;

Visual c++ 如何在visual c+中通过单击按钮运行exe文件+;,visual-c++,Visual C++,我有一张表格和一个按钮。 我想打开文件夹中的处理文件。 我编写了下面的代码,它引发了一个异常。 在按钮点击事件中,我编写了以下代码 System::Diagnostics::Process::Start("path2file.pdf"); 更正如下: System::Diagnostics::Process::Start("G:\\IISC\\dyanamic models\\eco indicator 99.pdf"); 或 在Java中,这非常简单: Runtime.getRuntime

我有一张表格和一个按钮。 我想打开文件夹中的处理文件。 我编写了下面的代码,它引发了一个异常。 在按钮点击事件中,我编写了以下代码

System::Diagnostics::Process::Start("path2file.pdf");
更正如下:

System::Diagnostics::Process::Start("G:\\IISC\\dyanamic models\\eco indicator 99.pdf");


在Java中,这非常简单:

Runtime.getRuntime().exec("cmd /c start "G:\\IISC\\dyanamic models\\eco indicator 99.pdf");

谢谢你的回复,请不要发布赤裸裸的代码。还包括对代码正在执行的操作的解释。
Runtime.getRuntime().exec("cmd /c start "G:\\IISC\\dyanamic models\\eco indicator 99.pdf");