Hi Python-Team, my problem with main() function is solved. I convert char* to wchar_t* (Py_SetProgramName((wchar_t*)argv[0]); ) and now it works. thanks anyway. With best regards /Ingwer