文件操作问题?
各位大哥好:
问个基础问题?
我想在程序启动WORD程序,打开指定的WORD文档,怎么做?
问题点数:50、回复次数:3Top
1 楼kw123(阿柯)回复于 2003-12-01 11:56:04 得分 20
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
);
Top
2 楼kw123(阿柯)回复于 2003-12-01 12:00:32 得分 20
你 查一下帮助!Top
3 楼chwdong(chwdong)回复于 2003-12-01 13:50:09 得分 10
OleContainer1.CreateObjectFromFile('c:\1.doc',false);
OleContainer1.DoVerb(0);
Top




