Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Relational Databases
Expertise: Beginner
May 9, 1997

Delphi console application

Question:
Is it possible to write a non-interactive program in Delphi 2.0 that does something quick in the background without opening a form or a console window?

Answer:
Sure, but you have to be pretty careful about it.

First, start a new project, then remove the main form form of the application. Then the code you'll write will go either into the project file itself, or another unit that the project file "uses." From the project file, you can call some main procedure for your program and it will run just fine. However, for true background processing, you'll probably want to run your program in a separate thread.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date