Board index » delphi » Need Help with console mode app in Delphi 2.0
r...@wwd.net (Robert Harrold)
![]() Delphi Developer |
Wed, 14 Oct 1998 03:00:00 GMT
|
r...@wwd.net (Robert Harrold)
![]() Delphi Developer |
Wed, 14 Oct 1998 03:00:00 GMT
Need Help with console mode app in Delphi 2.0I'm in need of help on this: I'm trying to do some CGI work in delphi 2.0. I set the compiler to link for Thanks in advance. Robert Harrold |
Danny Hei
![]() Delphi Developer |
Wed, 14 Oct 1998 03:00:00 GMT
Re:Need Help with console mode app in Delphi 2.0Quoter...@wwd.net (Robert Harrold) wrote: Because the "wincrt" app's have vanished in Delphi 2.0, and the Win32 console A console app is generated by checking the appropriate option in the linker page The code by itself serves no useful purpose, I just had to try out the thing. Note that it uses 'Forms', but does not create or use a form, I have a working CGI Delphi console application (works with Netscape FastTrack Hopes this helps. Danny Heijl. ----------------------------------------------------------------------- uses Windows, var begin q := Tquery.Create(Nil); q.Close; q.First; writeln('That's it !!'+#10+#13); readln(s); finally end. Quote>I'm in need of help on this: AT WORK : | HOME : |
Bulat R. Sirazetdino
![]() Delphi Developer |
Sat, 17 Oct 1998 03:00:00 GMT
Re:Need Help with console mode app in Delphi 2.0H|! Quote>I'm trying to do some CGI work in delphi 2.0. I set the compiler to link for If you want to create a Windows program without a form then you have not got to choose a console application type. The only thing you have to do is to close a form module. If you don't want to use TApplication then you have to unlink FORMS.DCU from your program(delete it from uses line). SBR. |
Bengt Richt
![]() Delphi Developer |
Fri, 23 Oct 1998 03:00:00 GMT
Re:Need Help with console mode app in Delphi 2.0Quoter...@wwd.net (Robert Harrold) wrote: as yet unsaved. Then click view project manager, click the unit1 line, click the red minus, and don't save changes to unit1. Now you just have project1.dpr. Click view/ project source and edit it to look something like the following, to have something to test redirection of i/o: //------------------------------------------------------------ program Project1; {$APPTYPE CONSOLE} uses Windows; var s:String; i:DWORD; begin for i:= 1 to 5 do begin Readln(s); Writeln(s); end; end. //------------------------------------------------------------ Compile and save as First5 (or whatever you like). Go into an NT DOS prompt, find your way to the directory where First5.exe is, and try typing something like: first5 <first5.dpr or dir/s/b | first5 or first5 by itself, and you'll get to type 5 lines that are each successively repeated on the screen each time you finish one. HTH, |
1. HELP NEEDED WITH CONSOLE MODE APP
2. Need help with Delphi Console apps.
3. Unusual behaviour of console mode vs DOS mode app
4. Example : Delphi 2.0 console app + database access
6. Help needed compiling Win32 Console app
7. Console mode app / Ctrl+C checking
8. CONSOLE MODE APP PROBLEM!!!!
10. console mode app