Solved

Delphi output to CONSOLE

Posted on 1997-04-12
10
912 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
[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
  • 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
Industry Leaders: 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!

 
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
 

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

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month11 days, 7 hours left to enroll

623 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