removing debug window from app

Hi all,

Is there a way of disabling the debug window which appears behind the main application window and displays all of the cout’s?

Thanks,
Chris

I use:

  
    #ifdef TARGET_WIN32  
        FreeConsole();  
    #endif  

I’m not sure if that works on Visual Studio only or not.