本人想在基于对话框的MFC中实现
                                           点击按钮后运行外部EXE(例如 迅雷..QQ)
                                                     用些什么函数
                                                   最好有简单例子说明
                                                         谢谢!  

解决方案 »

  1.   

    例如: 打开一个应用程序  ShellExecute(this->m_hWnd,"open","QQ.exe","","", SW_SHOW ); 
      

  2.   

    就是这样了,顶一下1楼,要注意路径里的斜杠哦: "c:\\program files\\.....\\QQ.exe"MSDN里是这样描述的
    HINSTANCE ShellExecute(
        HWND hwnd,
        LPCTSTR lpOperation,
        LPCTSTR lpFile,
        LPCTSTR lpParameters,
        LPCTSTR lpDirectory,
        INT nShowCmd
    );To open a folder, use either of the following calls: 
    ShellExecute(handle, NULL, <fully_qualified_path_to_folder>, NULL, NULL, SW_SHOWNORMAL);
    or 
    ShellExecute(handle, "open", <fully_qualified_path_to_folder>, NULL, NULL, SW_SHOWNORMAL);To explore a folder, use: 
    ShellExecute(handle, "explore", <fully_qualified_path_to_folder>, NULL, NULL, SW_SHOWNORMAL);To launch the Shell's Find utility for a directory, use: 
    ShellExecute(handle, "find", <fully_qualified_path_to_folder>, NULL, NULL, 0);
      

  3.   

    1楼的就正确,参数里写完整QQ的路径"c:\\program files\\.....\\QQ.exe"