'Shell':找不到标识符

时间:2012-12-12 20:55:08

标签: c++-cli

我试图执行这个C ++程序时得到这个。为什么呢?

代码是:

private: 
    System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
        Shell("maplestory.exe")

1 个答案:

答案 0 :(得分:0)

您需要.NET库中的System.Shell.execute,或者需要调用Windows API ShellExecute