How do you inherit DOS console in Win32 application?

From: e^ln\(x\) (e^ln(x)_at_mîcôsÿêñ.com)
Date: 03/17/04


Date: Wed, 17 Mar 2004 19:10:08 GMT

How do you inherit and continue using the existing command-line console in a
Win32 assembly console application?

Borland C and MVC both do this automatically and hide the startup code from
the debugger. Every Windoze console application inherits the DOS console
when invoked from the command line, but I can't figure out how to do it.
I've been through the Windoze SDK from one end to the other and have found no
suggestions or example code. Does anybody have any hints?

Alternatively, does anyone have c0nt.asm from the Borland CBuilder package?
That is alleged to be the startup code used by the compiler.

TIA.



Relevant Pages

  • Re: How do you inherit DOS console in Win32 application?
    ... > Win32 assembly console application? ... does anyone have c0nt.asm from the Borland CBuilder ... > That is alleged to be the startup code used by the compiler. ...
    (alt.lang.asm)
  • Launching Another Executable from my Program (Borland C++)
    ... I have a C++ DOS app that I made in Borland... ... Is there a quick and dirty way to launch a console application (with ... command line args) from a DOS C++ app? ...
    (comp.os.msdos.programmer)
  • Re: looking for wincrt.pas
    ... All you have to do is remove the reference, ... > work in the console window. ... The regular Crt unit exposed even more functionality. ... Borland did the work of porting BC++'s conio.h to CBuilder, ...
    (borland.public.delphi.non-technical)
  • Re: how to write string to a dos console of a c# windows application
    ... "Mullin Yu" wrote in message ... compile to the console subsystem. ... Since you are a windows app, I think you will still inherit the ...
    (microsoft.public.dotnet.languages.csharp)
  • C++ Console Application Needs DLL to Run?
    ... I have a question that does not seem addressed on the Borland FAQ, ... I compile a Console Application with C++ Builder. ... others it won't run--Windows complains about a missing file, ...
    (alt.comp.lang.learn.c-cpp)