By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,846 Members | 1,862 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,846 IT Pros & Developers. It's quick & easy.


P: n/a
I cant get result from PyRun_File maybe someone can get me in the right

Follow code:
PyObject* localDict;
PyObject* mainModule;
PyObject* mainModuleDict;
int i=Py_file_input;



if(mainModule==NULL) { }
localDict = PyDict_New();
FILE *fpOut = fopen ("", "w");

fwrite (tempStr , 1 , hdlsize, fpOut);


FILE *fpIn = fopen ("", "r+");

//int tempPyResult = PyRun_SimpleFile (fpIn,
PyObject* tempPyResult =
PyRun_File(fpIn,"",i,mainModuleDict,localDi ct);
int lenTempPyResult = PyString_Size(tempPyResult);
char* stempPyResult = PyString_AsString(tempPyResult);

end code

When i try to read tempPyResult i cant get result?

I know that maybe is easy but i can figure out!

Please Help!
Thanks Rob
Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.