Problem Embedding PythonWin in VC++ 6

Thilo Ernst te at first.gmd.de
Fri Mar 24 08:11:46 EST 2000


Miles Rizzo wrote:

> Oh, yeah- when I try this in a console app I get the message "Can not setup
> interpreter state, as current state is invalid".
>
> "Miles Rizzo" <milesrizzo at hotmail.com> wrote in message news:...
> > Ok, I'm really new to Python (thought it was just a big snake until this
> > week). I've gone throught the tuturial and now I'm trying to embed a
> Python
> > script in an MFC app using VC 6.0. I followed
> > the instructions in "Using Pythonwin in an external project"
> > (http://www.python.org/windows/pythonwin/EmbeddingWin32ui.html) but my
> > application crashes. The DLL loads and the address of the function is
> found
> > but calling the Win32uiApplicationInit function causes a crash.
> >
> > I'd appreciate any suggestions. Thanks

Just a hint that may or may not help: Check whether you use the right
version of win32uiHostGlue.h .

- Thilo





More information about the Python-list mailing list