std console output for windows based app (?)
Messages   Related Types
This message was discovered on microsoft.public.dotnet.framework.clr.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
Post a new message to this list...

Nadav (VIP)
Hi,

(*) I am writing an unmanaged application that hosts managed assemblies (
e.g. CorBindToRuntimeEx ) my app may host window based PEs and Console based
PEs, the host is a single executable and should be able to host the two types
of the PEs.
(*) When Hosting a consol based app ( managed ) I can't see the std output
generated by the app.
(*) The host is compiled as a Win32 project (windows based) so it doesn't
support the std consol output, I wonder how can I enable support of the std
output for Win32 windows based projects?
--
Nadav
http://www.ddevel.com
Reply to this message...
 
    
Alessandro Catorcini (VIP)
Would it be an acceptable solution to call Console.SetOut and set it to a
TextWriter of your choosing from the managed code of the app running in
your host?

Hope this helps

--Alessandro

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Reply to this message...
 
 
System.Console
System.IO.TextWriter




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com