chronozphere, AthenaOfDelphi:

If you create a delphi consol app and run it from a dos box, it will use the dos box window already open correct?

if yes, then this is what AttachConsole does. Does any know of any links or any code that will allow me to emulate the AttachConsole function?