Solved

Delphi output to CONSOLE

Posted on 1997-04-12
10
878 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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

760 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

18 Experts available now in Live!

Get 1:1 Help Now