Check the given path to see if is existed, if not, then create all the needed folders
BOOL CheckMakePath( LPCSTR lpcszFullPath )
TRUE if either the path already existed (can call string::IsPath if don't want to waste time).
FALSE if error occurs when attempting to create the needed folders
EX1
void CheckMakePath_ex1() { string str = GetAppPath() + "junk\\some more junk"; ASSERT(!str.IsPath()); if(CheckMakePath(str)) { ASSERT(str.IsPath()); } else out_str("err in creating path"); }
string::IsPath
origin.h