Talk About Network

Google





Programming > Pascal Delphi Components Usage > Re: console vs ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 168 of 175
Post > Topic >>

Re: console vs GUI

by David Zimmerman <dzimm@[EMAIL PROTECTED] > Oct 13, 2005 at 06:53 PM

Jeff wrote:
> 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
 




 3 Posts in Topic:
console vs GUI
"Jeff" <ffej  2005-10-11 14:26:50 
Re: console vs GUI
David Zimmerman <dzimm  2005-10-13 18:53:26 
Re: console vs GUI
Noel <nobody@[EMAIL PR  2005-10-29 14:02:41 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 20:32:35 PST 2009.