Boost logo

Boost :

From: Karl Bellve (Karl.Bellve_at_[hidden])
Date: 2001-03-28 14:03:36

One of my problems was that I wasn't loading the class after I loaded
the module.

I now do a PyRun_SimpleString("from image_module import

I renamed a few things to make it more understandable. The constructor
of the class was then being called which isn't exactly what I wanted.
Which means it was doing a "new" class and not using the currently
loaded instance of the class. Still learing, reading and getting very

Karl Bellve wrote:
> >From the partial code below, my module is loaded by Python (statically
> linked in my app, as well as BPL). But, it fails when it tries to find
> the function "GetT" using the call PyDict_GetItemString. It also doesn't
> redirect STDIO or STDERR when I put that in a simple
> PyRun_SimpleString(). It is a little harder to check things inside
> Python because I am not making a DLL, so I can't really load the module
> into a python shell and see the STDIO/STDERR, unless I redirect it back
> to my Application.

Karl Bellve, Ph.D.                   ICQ # 13956200
Biomedical Imaging Group             TLCA# 7938 		
University of Massachusetts
Email: Karl.Bellve_at_[hidden]
Phone: (508) 856-6514
Fax:   (508) 856-1840
PGP Public key: finger kdb_at_[hidden]

Boost list run by bdawes at, gregod at, cpdaniel at, john at