Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Delphi replaced Dos unit with what?

275 views
Skip to first unread message

scooper

unread,
Jan 22, 2010, 9:04:55 PM1/22/10
to
Would anyone know how Borland replaced the Dos unit from Turbo Pascal in
Delphi? I am trying to run a TP program that neds the Dos unit in Delphi 5
and I remember reading of another unit they created for this task.
Thanking you
scooper


Dave Baxter

unread,
Jan 23, 2010, 5:31:33 AM1/23/10
to
In article <00e3de58$0$15609$c3e...@news.astraweb.com>, robertc47
@internode.on.net says...

In D7 at least (D5 not available, but I believe this may be similar)...

Project, Add New Project, then select "Console Application"

Would that do?

Dave B.

Maarten Wiltink

unread,
Jan 23, 2010, 7:03:27 AM1/23/10
to
"scooper" <robe...@internode.on.net> wrote in message
news:00e3de58$0$15609$c3e...@news.astraweb.com...

I suppose it's overly glib to suggest the Windows unit.

But there is something to it. If your program needs DOS, it's not a
given that it will be a good match to run it on Windows.

Groetjes,
Maarten Wiltink


Jamie

unread,
Jan 23, 2010, 1:10:06 PM1/23/10
to
Maybe you can use this one.
http://www.koders.com/delphi/fid887E17D19332E6893D0E475CA048909A0AFF9F06.aspx

And Also, you could look for the "WinCrt" that gives you the basics of
the "CRT" in TP with out the need of the low level crap.

and start with a Console app, not a GUI one..

--
You really should look into converting that into GUI, also, don't
expect to perform any low level INT's port reads/writes.

Rudy Velthuis

unread,
Jan 23, 2010, 5:29:40 PM1/23/10
to
scooper wrote:

There is no replacement, but I guess you can find most of the functions
in SysUtils.
--
Rudy Velthuis http://rvelthuis.de

"The god of the cannibals will be a cannibal, of the crusaders,
a crusader, and of the merchants a merchant."
-- Ralph Waldo Emerson

Rudy Velthuis

unread,
Jan 23, 2010, 5:33:13 PM1/23/10
to
Jamie wrote:

> And Also, you could look for the "WinCrt" that gives you the basics of
> the "CRT" in TP with out the need of the low level crap.

Or try:

http://rvelthuis.de/programs/console.html


--
Rudy Velthuis http://rvelthuis.de

"If one acknowledges a group or a nation willing to commit
atrocities, then one must also acknowledges the existence of a
nation willing to commit atrocities to blame on the first
nation."
-- Michael Rivero

scooper

unread,
Jan 23, 2010, 11:53:29 PM1/23/10
to
Thanks Rudy & everyone I think what I had in mind was ShellAPI.dcu

but for future reference I came across this:

ShellExecute(0, 'Open', PChar(Edit1.Text), PChar(''), PChar(''), SW_Hide);}

which executes the DOS OPEN command using the text in Edit1.Text as main
parameter(ie it opens the file named in Edit1.TExt).

scooper
"Learn by creating a complete program "
"Rudy Velthuis" <newsg...@rvelthuis.de> wrote in message
news:xn0gphx9w...@news.1und1.de...

0 new messages