[C++-sig] console I/O

Renji Panicker renjipanicker at gmail.com
Thu Nov 20 06:33:38 CET 2008


This is a win32 API issue, not a boost::python issue per se. You need
to redirect "CONIN$" and "CONOUT$" to stdin and stdout respectively.
See here:
http://comsci.liu.edu/~murali/win32gui/Win32Apps.htm

-/renji


On Thu, Nov 20, 2008 at 2:59 AM, Alan Baljeu <alanbaljeu at yahoo.com> wrote:
> I have embedded python in a Windows app.  For development purposes, this program creates a console window, then calls a python script which calls print.
>
> I don't see any output.
>
> I'm thinking the problem is I need to do something to redirect Python internal settings for stdin and stdout.  This is what I did with Prolog before.  I haven't found such an option for Python in the C api.  Anybody?  Or if you know of such for a C++ wrapper...
>
> Alan
>
>
>      __________________________________________________________________
> Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now at
> http://ca.toolbar.yahoo.com.
> _______________________________________________
> Cplusplus-sig mailing list
> Cplusplus-sig at python.org
> http://mail.python.org/mailman/listinfo/cplusplus-sig
>


More information about the Cplusplus-sig mailing list