<div dir="ltr">The Python3.3 embedding example says to use:<div>[ <a href="http://docs.python.org/3.3/extending/embedding.html#very-high-level-embedding">http://docs.python.org/3.3/extending/embedding.html#very-high-level-embedding</a> ]<div>
<br></div><div>    Py_SetProgramName(argv[0]);</div><div><br></div><div>Which throws:</div><div><br></div><div><div>    error C2664: 'Py_SetProgramName' : cannot convert parameter 1 from 'char *' to 'wchar_t *'</div>
<div><br></div><div>To fix this someone suggested the following code</div><div>[ <a href="http://stackoverflow.com/questions/18248343/c-python-3-binding">http://stackoverflow.com/a/18248800</a> ]<br></div><div><br></div><div>
<div>    wchar_t progname[FILENAME_MAX + 1];</div><div>    mbstowcs(progname, argv[0], strlen(argv[0]) + 1);</div><div>    Py_SetProgramName(progname);</div></div><div><br></div><div>Regards,</div>-- <br><div>Braden Wentworth</div>
[ online director / code monkey ]<br>[ <a href="http://www.labvc.com.au" target="_blank">www.labvc.com.au</a> ]
</div></div></div>