Re: [C++-sig] How to get output from python embedded in VC++

2017-07-31 Thread Jian
"Stefan Seefeld" wrote: >On 23.07.2017 03:15, Jian wrote: >> >> Hi Stefan, >> >> I still got a assertion failed at Py_Initialize(). Below is the message. >> >> Program: C:\Python35\python35_d.dll >> File: ..\Objects\object.c >> Line: 84 >

Re: [C++-sig] How to get output from python embedded in VC++

2017-07-23 Thread Jian
thon::error_already_set) { PyErr_Print(); } return 0; } Please help check it. Thanks & Best Regards, John. At 2017-07-23 01:01:29, "Stefan Seefeld" wrote: >On 21.07.2017 23:17, Jian wrote: >> Hi Imre, >> >> I tried to use boost.python as you adv

Re: [C++-sig] How to get output from python embedded in VC++

2017-07-22 Thread Jian
f it can be done in C/C++ in Linux? Thanks again for your kind help. Best Regards, Jian At 2017-07-20 22:34:35, "Stefan Seefeld" wrote: >On 19.07.2017 23:25, Jian wrote: >> >> Dear Gurus, >> >> I want to embed python interpreter in my program. What I want is

Re: [C++-sig] How to get output from python embedded in VC++

2017-07-22 Thread Jian
espace); > >// declare a variable named return_value in the script, >// and you can extract it's value to c++ like this >std::wstring output = >extract(main_namespace["return_value"]); > >} catch( boost::python::error_already_set

Re: [C++-sig] How to get output from python embedded in VC++

2017-07-22 Thread Jian
ript.py", >main_namespace, main_namespace); > >// declare a variable named return_value in the script, >// and you can extract it's value to c++ like this > std::wstring output = >extract(main_namespace["return_value"]); > >

[C++-sig] How to get output from python embedded in VC++

2017-07-20 Thread Jian
Dear Gurus, I want to embed python interpreter in my program. What I want is to redirect those output to a control such as RICHEDIT which can be modified as a output window in my program. So I can write *.py files outside of program and invoke it inside program as a script file. In order to get