[C++-sig] console I/O
alanbaljeu at yahoo.com
Mon Nov 24 20:47:01 CET 2008
I followed the directions there, but that is incomplete. I can printf from C to the console, but print from Python does nothing. Something in the Python API must be employed. But perhaps I should take this to the main Python list.
----- Original Message ----
From: Renji Panicker <renjipanicker at gmail.com>
To: Development of Python/C++ integration <cplusplus-sig at python.org>
Sent: Thursday, November 20, 2008 12:33:38 AM
Subject: Re: [C++-sig] console I/O
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.
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...
> Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now at
> Cplusplus-sig mailing list
> Cplusplus-sig at python.org
Cplusplus-sig mailing list
Cplusplus-sig at python.org
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now at
More information about the Cplusplus-sig