How do I write to StdOut from a GUI app started from the command line?

后端 未结 8 2171
一向
一向 2021-02-09 05:52

I am writing a standard windows app in Delphi 7.

If I was writing a console app, I can call the following to output to the cmd line or output file.

write         


        
8条回答
  •  一个人的身影
    2021-02-09 06:19

    I did summarize this topic in a report with a running script too:

    http://www.softwareschule.ch/download/maxbox_starter70.pdf as a second backup:

    https://www.slideshare.net/maxkleiner1/nogui-maxbox-starter70

    the main routine has a nativewriteline to separate from writeline:

     for it:=1 to 50 do if IsPrime(it) then NativeWriteln(IntToStr(it)+' is prime');
    

提交回复
热议问题