 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Jeff Guest
|
Posted: Tue Oct 11, 2005 9:26 pm Post subject: console vs GUI |
|
|
I wanted this to be a console application. Since I need to include a
component that retrieves e-mail (NMPOP3), I had to make it a GUI
application. Now, I want to write the results to a text file. Of course,
I cannot open a text file in a GUI application. Give me a break! Why is
everything mutually exclusive like this? What am I going to have to do in
order to make a GUI application write to a text file? Is it only version 6
of Delphi that prohibits a GUI from opening/reading/writing a text file?
Can other versions do it? Thank you for your help.
|
|
| Back to top |
|
 |
David Zimmerman Guest
|
Posted: Thu Oct 13, 2005 6:53 pm Post subject: Re: console vs GUI |
|
|
Jeff wrote:
| Quote: | I wanted this to be a console application. Since I need to include a
component that retrieves e-mail (NMPOP3), I had to make it a GUI
application. Now, I want to write the results to a text file. Of course,
I cannot open a text file in a GUI application. Give me a break! Why is
everything mutually exclusive like this? What am I going to have to do in
order to make a GUI application write to a text file? Is it only version 6
of Delphi that prohibits a GUI from opening/reading/writing a text file?
Can other versions do it? Thank you for your help.
put |
{$apptype console}
near the top of your .dpr
Poof! you have a GUI app that can write on the console!
(it'll even open one if you don't run from a command line)
I do this *all* the time to use "writeln" for debugging
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|