烈火青春

逝去日子

导航

随笔分类 -  Delphi

如何读到一个文件的最后更新日期和时间
摘要:type //分别对应文件创建时间,访问时间,修改时间 TFileTimeType = (fttCreation, fttLastAccess, fttLastWrite); function GetFileDateTime(const FileName: string; FileTimeType: TFileTimeType): TDateTime; var Han... 阅读全文

posted @ 2009-03-18 11:28 steamx 阅读(484) 评论(0) 推荐(0)

Delphi输出日志的方法
摘要:1、使用OutputDebugString procedure TForm1.BtnDebugClick(Sender: TObject); begin //这里调用OutputDebugString发送调试信息到调试器。 //在Delphi里面,用View - Debug Windows - Event Log 来查看。 OutputDebugString(PChar('测试Out... 阅读全文

posted @ 2009-03-18 11:28 steamx 阅读(2154) 评论(0) 推荐(0)