winexec(pchar('c:\windows\calc.exe'), 0);

解决方案 »

  1.   

    用HINSTANCE ShellExecute(    HWND hwnd, // handle to parent window
        LPCTSTR lpOperation, // pointer to string that specifies operation to perform
        LPCTSTR lpFile, // pointer to filename or folder name string
        LPCTSTR lpParameters, // pointer to string that specifies executable-file parameters 
        LPCTSTR lpDirectory, // pointer to string that specifies default directory
        INT nShowCmd  // whether file is shown when opened
       );
      

  2.   

    就是winexec和ShellExecute两个方法
      

  3.   

    windows有没有日历程序可以调用?