This commit is contained in:
qianlifeng
2013-12-25 00:21:54 +08:00
parent 87225e64fa
commit 94cd2c0599
8 changed files with 65 additions and 26 deletions

View File

@@ -38,6 +38,7 @@ extern "C" __declspec(dllexport) char* ExecPython(char* directory, char* file, c
// Call a method of the class with two parameters
pValue = PyObject_CallMethod(pInstance,"query", "(s)",query);
char * str_ret = PyString_AsString(pValue);
// Finish the Python Interpreter
Py_Finalize();