各位大哥好:
    问个基础问题?
    我想在程序启动WORD程序,打开指定的WORD文档,怎么做?

解决方案 »

  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.   

    OleContainer1.CreateObjectFromFile('c:\1.doc',false);
      OleContainer1.DoVerb(0);