char szStr[MAX_PATH] = {0}; size_t st; wcstombs_s(&st,szStr, strPath, MAX_PATH); char *sPath = szStr;