function GetExePath: string;
begin
Result := ExtractFilePath(ParamStr());
end; function GetTempFileName: string;
var
vPath: string;
begin
SetLength(Result, );
GetTempFileName(PChar(GetExePath), PChar('~'), , PChar(result)); vPath := GetExePath + 'temp\';
if not SysUtils.DirectoryExists(vPath) then
SysUtils.ForceDirectories(vPath);
result := PChar(Result); //去掉多余的空字符
Result := vPath + ExtractFileName(Result);
end;

http://blog.csdn.net/shuaihj/article/details/7108792

最新文章

  1. Atitit 图像处理--图像分类 模式识别 肤色检测识别原理 与attilax的实践总结
  2. 【python cookbook】【字符串与文本】6.以不区分大小写的方式对文本做查找和替换
  3. 【转】eclipse下使用hibernate tools实现hibernate逆向工程
  4. 客户端发包 GS端接收
  5. Xcode use Protocol buffer
  6. cocos2d-x关于CCTableView的“乱序问题”的理解
  7. GitHub使用(四) - 关于分支Branch
  8. 【JDK1.8】JDK1.8集合源码阅读——LinkedHashMap
  9. SpringMVC中的适配器(适配者模式)
  10. 解决redis connection refused: connect无法连接redis
  11. Windows安装docker (带安装包)
  12. 51nod1229 序列求和 V2
  13. Sql Server数据库之存储过程
  14. maven 项目快速下载jar方式
  15. python操作三大主流数据库(14)python操作redis之新闻项目实战②新闻数据的展示及修改、删除操作
  16. ios证书生成
  17. JavaScript——AJAX
  18. [Android] 仿照 Last App Switcher 写的小程序
  19. Python之括号()[]{}
  20. 关于"XML 文档(2, 2)中有错误:不应有 <xml xmlns=''>"错误

热门文章

  1. Mysql主从配置+读写分离(转)
  2. 基于visual Studio2013解决C语言竞赛题之0903文件读写
  3. 基于visual Studio2013解决C语言竞赛题之0806平均分
  4. asp.net后台对前台脚本的调用
  5. 【Cocos2d-x游戏引擎开发笔记(25)】XML解析
  6. c语言,数组和字符串
  7. linux下抓取网页快照
  8. Eclipse用法和技巧十四:自动生成的TODO注释2
  9. 圆角和圆形ImageView
  10. Linear Regression(线性回归)(一)—LMS algorithm