本文整理自网络,侵删。
function GetSelfPath: string;
var
ModuleName: string;
i: Integer;
begin
SetLength(ModuleName, 255);
GetModuleFileName(HInstance, PChar(ModuleName), Length(ModuleName));
i := LastDelimiter('\', ModuleName);
Result := Copy(ModuleName, 1, i);
end;
相关阅读 >>
Delphi xe6开发的android应用实现在线升级完成后自动安装apk代码
Delphi tms web core直接从html&css设计的页面布局
更多相关阅读请进入《Delphi》频道 >>