How to import Open3d in VC++ embedded Python project

I have successfully used Open3d in a Python project (VS2019). All my code is in one file “”.
I have a VC++ (VS2015) project from which I need to run this Python script file (“”). I have written the following code:
char* eximpath = “C:\Users\Tooltech\anaconda3\Lib\site-packages\open3d”;
char* modulename = “Open3d”;
char filename[] = “D:\MyProject\”;
wchar_t* path;
path = Py_GetPath();
PyObject *syspath, *pName, *pModule, pModuleName;
syspath = PySys_GetObject(“path”);
// Build the name object
pName = PyUnicode_FromString(eximpath);
if (PyList_Insert(syspath, 0, pName))
printf(“Error inserting extra path into sys.path list\n”);
if (PySys_SetObject(“path”, syspath))
printf(“Error setting sys.path object\n”);
// Load the module object
pModuleName = PyUnicode_FromString(modulename);
pModule = PyImport_Import(pModuleName);
if (pModule == NULL)
printf(“Could not import Open3d”);
//return 0;
fpReal = _Py_fopen(filename, “r”);// pointer returned by fopen() does not work
if (fp == NULL)
printf(“Oh dear, something went wrong with read()! %s\n”, strerror(errno));
else // Success!
PyRun_SimpleFile(fp, filename);
But I keep getting error 'Could not import Open3d, Module Not Found Error ’

Any help would be welcom!