本文整理自网络,侵删。
uses WinTypes, ShellAPI;
procedure OpenObject(sObjectPath: string);begin ShellExecute(0, nil, PChar( sObjectPath ), nil, nil, SW_NORMAL);end;
//调用 OpenObject('c:\my_docs\report.txt');
相关阅读 >>
Delphi winapi: setlayeredwindowattributes - 设置窗口的透明
更多相关阅读请进入《Delphi》频道 >>