Solved

Delphi output to CONSOLE

Posted on 1997-04-12
10
880 Views
Last Modified: 2009-11-20
I want to create CGI by delphi.. but I don't know How to use delphi send output to console?
0
Comment
Question by:b36kws
  • 5
  • 3
  • 2
10 Comments
 
LVL 3

Accepted Solution

by:
mheacock earned 70 total points
ID: 1335330
Here are several places you can go to find out all you need to know about Delphi and CGI:

http://super.sonic.net/ann/delphi/cgicomp/
http://www.dkw.com/bstone/Delphi.htm

The latter has source code templates.
0
 
LVL 1

Expert Comment

by:buemoh
ID: 1335331
Hi b36kws,

output to CONSOLE from Delphi is easy. Use the following code:

{$APPTYPE Console}
program xyz;

uses
   Windows, Sysutils;

begin
  writeln( 'Hallo World!' );
end.

This code writes the output directly to the CONSOLE. If you run this program within the IDE you'll see that a DOS-Box will be opened and the words "Hallo World!" were written.

CGI-programming:

I'm able to send my Delphi 2.x component to you, which supports DOS-CGI, WIN-CGI and ISAPI at the moment. In a few days it will also support NSAPI and the Alibaba API.

Bye

Hartwig MOTAL

    /   /        /__ /__ /      A-1190  Vienna / Austria
   /__ /        /   /   /      Weinberggasse 60/9/7
  /   /        /   /   /      phone: 0043 (222) 32 83 87
_/  _/artwig _/  _/  _/OTAL  e-mail: moh@bue.magwien.gv.at

0
 
LVL 3

Expert Comment

by:mheacock
ID: 1335332
At this site you'll find a simpler implementation of CGI and an article:

http://netserv.borland.com/delphi/news/cobb/ddj1_6b/ddj1_6b.html
0
 
LVL 3

Expert Comment

by:mheacock
ID: 1335333
Did any of this help?  If you could spare a moment to grade this answer, it would be appreciated.  Thanks.
0
 

Author Comment

by:b36kws
ID: 1335334
Dear buemok,
   I want to write WIN-CGI by Delphi because I want to connect to DBF database file.. If I write program same as you .. can I connect to DBF by Delphi feature?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:b36kws
ID: 1335335
Dear mheacock,
   But a little.. It OK?
0
 
LVL 3

Expert Comment

by:mheacock
ID: 1335336
Did the code at those sites prove to be helpful?  I'm guessing
from your answer, just a little?  What were the problems you encountered?
0
 
LVL 1

Expert Comment

by:buemoh
ID: 1335337
Dear b36kws,

Yes indeed, my component makes it easy to build WIN-CGI Delphi applications which uses the BDE for database connections or any other database connection component, tool, ...

Notice, the component will only be e-mailed, therefore send a e-mail or write a comment there down.

Bye
Hartwig

Dear mheacock,

sorry, but I've tested many units, components, tools, ... for CGI application building with Delphi, but I'ven't found a easy to handle way component which supports as many as possible CGI interfaces then my.

Try it and you'll like it.

Bye
Hartwig

-----------------------------------------------------------------------------------------------------
///\\\ Hartwig MOTAL ///\\\  e-mail: moh@bue.magwien.gv.at
 Weinberggasse 60/9/7, A-1190  Vienna/Austria/Europe

0
 
LVL 1

Expert Comment

by:buemoh
ID: 1335338
Dear b36kws,

Yes indeed, my component makes it easy to build WIN-CGI Delphi applications which uses the BDE for database connections or any other database connection component, tool, ...

Notice, the component will only be e-mailed, therefore send a e-mail or write a comment there down.

Bye
Hartwig

Dear mheacock,

sorry, but I've tested many units, components, tools, ... for CGI application building with Delphi, but I'ven't found a easy to handle way component which supports as many as possible CGI interfaces then my.

Try it and you'll like it.

Bye
Hartwig

-----------------------------------------------------------------------------------------------------
///\\\ Hartwig MOTAL ///\\\  e-mail: moh@bue.magwien.gv.at
 Weinberggasse 60/9/7, A-1190  Vienna/Austria/Europe

0
 
LVL 3

Expert Comment

by:mheacock
ID: 1335339
You gotta love it when people insert there product brochures
into E-E.

If this guy figures he has made the best CGI component in the
world, then ask him for it.  Also ask him how much it costs!!

The resources I sent you to were FREE.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
creating manifest for my dll that called from activex 6 98
Print Graphic and Text to Epson TM-T88v 12 168
Firemonkey webbrowser scrollbars ? 1 29
DBGrid or StringGrid ? 6 62
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

929 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now