Handles and pointer to object

Posted by Tony on Stack Overflow See other posts from Stack Overflow or by Tony
Published on 2010-06-18T12:28:35Z Indexed on 2010/06/18 12:33 UTC
Read the original article Hit count: 317

Filed under:
|
|
|

I have a python Interpreter written in C++, the PyRun_String function from the Python API is said to return a handle, however in my code I have it assigned to pointer to a PyObject?

PyObject* presult = PyRun_String(code, parse_mode, dict, dict); 

Is this actually correct? Can you implicitly cast this handle to this object pointer?

Should it not be a HANDLE instead?

© Stack Overflow or respective owner

Related posts about c++

Related posts about object