烈火青春

逝去日子

导航

2009年3月18日

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 阅读(2153) 评论(0) 推荐(0)

如何读到一个文件的最后更新日期和时间

摘要: 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)

VS2005错误 error PRJ0003 生成 cmd.exe 时出错

摘要: 该问题由于VS2005的环境变量设置不对导致,解决如下: tools=> Options => Projects and Solutions -> VC++ Directories page then place below rows: $(SystemRoot)\System32 $(SystemRoot) $(SystemRoot)\System32\wbem 阅读全文

posted @ 2009-03-18 11:27 steamx 阅读(1164) 评论(1) 推荐(0)