Original Post
hey there. straight to the point: i am trying to get started with Python embedding in my C++ programs, specifically passing and returning values to a Python scripted function which is inside a module: .... pModule = PyImport_Import(pName); .... pDict = PyModule_GetDict(pModule); ... //successfully until now pFunc = PyDict_GetItem(pDict,pFnc); //this doesn't work, i also tried PyDict_GetItemString(..) with char* script is simple: def add(x,y): res = x+y return res so pFnc is PyString_FromString("add") any suggestions?