I use following code to create a file in my programe
UINT nFlags = CFile::modeCreate | CFile::modeWrite;
if (oFile.Open(oPath, nFlags,Error))
catch (CException * pEx)
the function of oFile.Open return false.
but in other folder (not in Public folder) is Okay