wchar_t * sourcepath=new wchar_t[MAX_PATH];
int s1=str.toWCharArray(sourcepath);
sourcepath[s1]=0;

05-02 09:29