winexec 针对 可执行文件
shellexecute 针对 windows中的所有文件 他会找到windows登记了的对应程序打开对应文件

解决方案 »

  1.   

    The WinExec function runs the specified application. Note  This function is provided only for compatibility with 16-bit Windows. Win32-based applications should use the CreateProcess function. UINT WinExec(
      LPCSTR lpCmdLine,  // command line
      UINT uCmdShow      // window style
    );==============================================================
    ShellExecute
    Performs an operation on a specified file. HINSTANCE ShellExecute(
        HWND hwnd, 
        LPCTSTR lpVerb,
        LPCTSTR lpFile, 
        LPCTSTR lpParameters, 
        LPCTSTR lpDirectory,
        INT nShowCmd
    );MSDN中有很详细的说明