Posted By: pivson (Pijte pivo, je zdrave !) on 'CZprogram'
Title:     Re: Win32: console app
Date:      Thu Jan 10 20:21:10 2002

> Toto ovsem ma tu vadu, ze kdyz svou aplikacku pustis z existujici konzole
> (treba z FARu), otevre se ti nove konzolove okno.
> Lepe to AFAIK bohuzel nejde.
Nemusi. Pokud se blyze podivas na dane API, tak umoznujou NEVYTVORIT jiny 
okno, pokud jous sposteny z konzole - napr:

AllocConsole

A process can be associated with only one console, so the AllocConsole 
function fails if the calling process already has a console. A process can use 
the FreeConsole function to detach itself from its current console, and then 
it can call AllocConsole to create a new console. If the calling process 
creates a child process, the child inherits the new console. 

Myslim ze neni co dodavat :)

A pak tu jsou jeste GetStdHandle - ty se taky hodi...

 

Pivson I a posledni, z bozi vule pivar

    A co budou delat cesi ???
                                     Deme na pivo !

Search the boards