Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

questions about console apps

Posted on 1999-07-14
5
Medium Priority
?
122 Views
Last Modified: 2010-04-06
I want to make a console app. How do I create the app so that it has no gui? if i get rid of the form can I still use the nongraphical compents that I would normally just drop onto the form? Also how do I get the app to pick up command line parameters?

thanks in advance for any help
0
Comment
Question by:TMcSinly
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 27

Accepted Solution

by:
kretzschmar earned 300 total points
ID: 1388519
hi TMcSinly (what for an object?),

check in your projectoptions|linker the ConsoleApp checkbox.

you can't use vcl components, you must code straight pascal

you can get commandline-parameters with the paramstr() function

meikl
0
 

Author Comment

by:TMcSinly
ID: 1388520
well, im writing an app to dummy proof some network admin tasks. theres no need for the app to have a gui since itll most likely be used in scripts.

I suppose I could just not create or show the form and sill use the vcl components. Right? Thanks for your help.

0
 

Author Comment

by:TMcSinly
ID: 1388521
well, im writing an app to dummy proof some network admin tasks. theres no need for the app to have a gui since itll most likely be used in scripts.

I suppose I could just not create or show the form and sill use the vcl components. Right? Thanks for your help.

0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 1388522
hmm  TMcSinly,

if you must have access to the win-api, then is a console-app not useable.
then it will be better to create a form and place the vcl-components you need on it and leave the form hidden, while running
or
code a service

a console app is like a dosbox, no access to the win-api,
therefore no usability of vcl-components.

meikl
0
 

Author Comment

by:TMcSinly
ID: 1388523
i see. i was confused then. ill just keep the form hidden. thanks again for the info.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question