need help for extending and embedding

Ing Giuseppe Monteleone info at ing-monteleone.com
Sun Feb 29 09:20:46 EST 2004


I'm trying to extend and embed the python language in a Borland C++Builder
application but I have some problem

Using PyRun_SimpleFile() I got and invalid access error, menwhile using
PyRun_SimpleString I cannot have no effect.

I used the standard sequence embedding code

Py_Initialize()

Py_InitModule()
PyImport_AddModule()
PyRun_SimpleFile()

I checked parameter many times, but the program won't work. what's wrong ?

In my opinion i think that could be some problem with stdion and stdout but
I acnnot redirect them from C before starting file with PyRun_SimpleFile.


can anyone help me ?

Thanks

Ing Giuseppe Monteleone








More information about the Python-list mailing list