BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

console vs GUI

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.components.usage
View previous topic :: View next topic  
Author Message
Jeff
Guest





PostPosted: Tue Oct 11, 2005 9:26 pm    Post subject: console vs GUI Reply with 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.


Back to top
David Zimmerman
Guest





PostPosted: Thu Oct 13, 2005 6:53 pm    Post subject: Re: console vs GUI Reply with quote





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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.components.usage All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.