Board index » delphi » looking for wincrt.pas

looking for wincrt.pas


2004-04-15 02:47:13 AM
delphi0
Hello,
I have just download a sample project and it uses wincrt.pas library and I
can't find it on the internet.
does anybody knows where can I find it?
or please send it to my personal email account
In advance
Thanks a lot for your help
 
 

Re:looking for wincrt.pas

SuperMark writes:
Quote
I have just download a sample project and it uses wincrt.pas library
and I can not find it on the internet.
That was a Delphi 1 unit, and I doubt that you will find it anywhere,
since it is Borland's property.
Remove the reference, and the application should run in a console
window.
--
Nick Hodges -- TeamB
Lemanix Corporation -- www.lemanix.com
Read my Blog -- www.lemanix.com/nick
 

Re:looking for wincrt.pas

"SuperMark" <supermark1973NOSPAM@PLEASE?hotmail.com>writes
Quote

does anybody knows where can I find it?
Search for win32crt - there are lots around.
 

Re:looking for wincrt.pas

On 14 Apr 2004 12:01:36 -0800, "Nick Hodges (TeamB)"
<XXXX@XXXXX.COM>writes:
Quote
That was a Delphi 1 unit, and I doubt that you will find it anywhere,
since it is Borland's property.

Remove the reference, and the application should run in a console
window.
Won't be too hard to write it though.
 

Re:looking for wincrt.pas

"SuperMark" <supermark1973NOSPAM@PLEASE?hotmail.com>wrote in
Quote
I have just download a sample project and it uses wincrt.pas library
and I can not find it on the internet.
try this instead...
codecentral.borland.com/codecentral/ccweb.exe/listing
--
Mark Vaughan
___________
Visit the Numerical Methods in Pascal web page at
www-rab.larc.nasa.gov/nmp/fNMPhome.htm
 

Re:looking for wincrt.pas

Thanks for your help!!
"Mark Vaughan" <XXXX@XXXXX.COM>escribi?en el mensaje
Quote
"SuperMark" <supermark1973NOSPAM@PLEASE?hotmail.com>wrote in
news:XXXX@XXXXX.COM:

>I have just download a sample project and it uses wincrt.pas library
>and I can not find it on the internet.

try this instead...

codecentral.borland.com/codecentral/ccweb.exe/listing


--
Mark Vaughan
___________

Visit the Numerical Methods in Pascal web page at
www-rab.larc.nasa.gov/nmp/fNMPhome.htm

 

Re:looking for wincrt.pas

Nick Hodges (TeamB) writes:
Quote
That was a Delphi 1 unit, and I doubt that you will find it anywhere,
since it is Borland's property.
It's unfortunate Borland didn't include it as a compatibility unit.
Ditto for the original Crt unit.
Will
--
Want a 64-bit Delphi compiler for AMD64 / IA-32e? Vote here--
qc.borland.com/wc/wc.exe/details
 

Re:looking for wincrt.pas

Will DeWitt Jr. writes:
Quote
It's unfortunate Borland didn't include it as a compatibility unit.
Good grief, why? The exact same calls can be sent to the real console.
All you have to do is /remove/ the reference, and the calls work in the
console window.
--
Nick Hodges -- TeamB
Lemanix Corporation -- www.lemanix.com
Read my Blog -- www.lemanix.com/nick
 

Re:looking for wincrt.pas

Nick Hodges (TeamB) writes:
Quote
Good grief, why? The exact same calls can be sent to the real
console. All you have to do is remove the reference, and the calls
work in the console window.
Maybe you've never used WinCrt, so here's the functions it provides--
procedure InitWinCrt;
procedure DoneWinCrt;
procedure WriteBuf(Buffer: PChar; Count: integer);
procedure WriteChar(Ch: char);
function KeyPressed: boolean;
function ReadKey: char;
function ReadBuf(Buffer: PChar; Count: integer): integer;
procedure GotoXY(X, Y: integer);
function WhereX: integer;
function WhereY: integer;
procedure ClrScr;
procedure ClrEol;
procedure CursorTo(X, Y: integer);
procedure ScrollTo(X, Y: integer);
procedure TrackCursor;
procedure AssignCrt(var F: Text);
----
If you remove the reference, it won't work at all if it uses any of
those functions. Only if it uses Write/WriteLn and Co. would it
continue to work correctly, and even then, the look/appearance of it
would fail. The regular Crt unit exposed even more functionality.
It took a half hour to port BP7's WinCrt.pas to Delphi 7 (I'll admit I rarely
used it back in the day, so there may be something not working, but at
first look, it appears to be working fine). As for the old Crt.pas,
Borland did the work of porting BC++'s conio.h to CBuilder, so why not
apply that work to a compatibility unit for Delphi console apps? It's
always boggled my mind that Borland left people{*word*154} that used those
libraries from the BP7/TPW/D1 days.
Will
--
Want a 64-bit Delphi compiler for AMD64 / IA-32e? Vote here--
qc.borland.com/wc/wc.exe/details
 

Re:looking for wincrt.pas

Will DeWitt Jr. writes:
Quote
Maybe you've never used WinCrt, so here's the functions it provides--
I stand corrected.
--
Nick Hodges -- TeamB
Lemanix Corporation -- www.lemanix.com
Read my Blog -- www.lemanix.com/nick
 

Re:looking for wincrt.pas

At 23:11:48, 18.04.2004, Will DeWitt Jr. writes:
Quote
Nick Hodges (TeamB) writes:

>Good grief, why? The exact same calls can be sent to the real
>console. All you have to do is remove the reference, and the calls
>work in the console window.

Maybe you've never used WinCrt, so here's the functions it provides--

procedure InitWinCrt;
procedure DoneWinCrt;

procedure WriteBuf(Buffer: PChar; Count: integer);
procedure WriteChar(Ch: char);

function KeyPressed: boolean;
function ReadKey: char;
function ReadBuf(Buffer: PChar; Count: integer): integer;

procedure GotoXY(X, Y: integer);
function WhereX: integer;
function WhereY: integer;
procedure ClrScr;
procedure ClrEol;

procedure CursorTo(X, Y: integer);
procedure ScrollTo(X, Y: integer);
procedure TrackCursor;

procedure AssignCrt(var F: Text);
AFAIK, there are quite a few freeware replacements floating on the usual
component sites. I agree that a WinCRT unit would have been a nice
addition.
--
Rudy Velthuis (TeamB)
"He would make a lovely corpse."
-- Charles{*word*106}ens (1812-1870)