读书人

Delphi编写windows应用程序writeln函

发布时间: 2012-02-05 12:07:15 作者: rapoo

Delphi编写windows应用程序,writeln函数不能使用
Delphi编写windows应用程序,writeln函数不能使用
本来想用writeln作为单元文件测试用,目的是监控局部变量,但是运行就出错
请求帮助

[解决办法]
另外,也可以重定向rtl中的Output,然后Writleln就可以向文件输出了
比如:

Delphi(Pascal) code
  AssignFile(Output, 'debug.log');  Rewrite(Output);  ...  Writeln(blahblah); 

读书人网 >.NET

热点推荐