Notifications
Clear all

[Closed] new directory from SDK

Is there an easy way to convert a MCHAR to CHAR or any other way to do this?


MCHAR Path[256];
MCHAR Dir[20];
wcscpy( Path, TheManager->GetDir(APP_PREVIEW_DIR));
swprintf(Dir, _T("\	emp\\"), 0);
wcscat(Path, Dir);

mkdir(Path);  // Wants a char not MCHAR

2 Replies

mkdir is deprecated. use _wmkdir instead

Thanks mate that works great