Subj : Re: Single .EXE for mode console and GUI To : borland.public.cpp.borlandcpp From : Jogy Date : Tue Apr 19 2005 06:09 pm Sebastian Ledesma wrote: > Hi: > > Context: Win32 > There is a way to create an app that runs in console mode (as console > application) and also in graphic mode (GUI application)? > > Thanks in advance. > > Saludos > Sebastian > > > Hello, I think you can make a GUI application, and in the main function (WinMain or OwlMain) if you decide that it should be run as console application, then do not create any windows, but create a console instead (look up the WinAPI functions for this), and use it for input/output. Jogy .