- UID
- 2261
注册时间2005-7-5
阅读权限20
最后登录1970-1-1
以武会友
 
TA的每日心情 | 开心 2019-9-19 16:05 |
---|
签到天数: 4 天 [LV.2]偶尔看看I
|
///////////// 应用程序当前路径 /////////////
ExtractFilePath(paramstr(0))
ExtractFilePath(application.ExeName)
///////////// COM中当前路径 /////////////
.... ....
TCustomMG = class(TTypedComObject, ICustomMG)
function TCustomMG.getXmlPath: string;
var
xmlPath:string;
S:array[0..255] of char;
begin
Result:='';
GetModuleFileName(hinstance,s,length(s));
xmlPath := extractfilepath(s);
result := xmlPath;
end; |
|