Re: [C++-sig] console I/O

2008-11-19 Thread Renji Panicker
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 <[EMAIL PROTECTED]> wrote: > I have embed

[C++-sig] Passing C++ instance to embedded py

2008-11-19 Thread fileoffset
To best explain my problem, here is some code: struct A { A() { mTest = 1; std::cout << "Test: " << mTest; Py_Initialize(); object main_module = import("__main__"); object main_namespace = main_modul

[C++-sig] console I/O

2008-11-19 Thread Alan Baljeu
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