ShellExecute(
hWnd: HWND; {指定父窗口句柄}
Operation: PChar; {指定动作, 譬如: open、print}
FileName: PChar; {指定要打开的文件或程序}
Parameters: PChar; {给要打开的程序指定参数; 如果打开的是文件这里应该是 nil} Directory: PChar; {缺省目录}
ShowCmd: Integer {打开选项}):
#include <Windows.h> ShellExecuteA(NULL,"open","D:/yundao/File/Qt.doc",NULL,NULL,SW_SHOW);
时间: 2024-11-01 22:12:49