How to load the DLL with PyRun_SimpleString?

Link link0937 at hotmail.com
Tue Sep 23 03:49:26 EDT 2003


Hi,

Have anyone know how to import the DLL in C program?


Actually, I have used the statement 'PyRun_SimpleString' to import .PY,

Such as,
r = PyRun_SimpleString("import os");
It's be fine.


If importing the DLL by this commdand,

Such as,
r = PyRun_SimpleString("import example");

return the error code -1.


Should any advice,  let me know whatever you try...

Thanks in advance.
Link






More information about the Python-list mailing list