Problem Embedding PythonWin in VC++ 6

Mark Hammond mhammond at skippinet.com.au
Sat Mar 25 03:21:54 EST 2000


"Miles Rizzo" <milesrizzo at hotmail.com> wrote in message
news:A99C4E4230CD7B23.4ACDFE2CFC2E7039.0451184D836BA62E at lp.airnews.net
...
> > 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.

That doc is very old.  Just look at pythonwin.cpp - it is less than
150 lines of code (including blanks and comments).  You will note that
InitApplication() is where the DynamicApplicationInit() call now
lives, and InitInstance() simply calls glue.InitInstance().

Mark.






More information about the Python-list mailing list