CString fileName = "test:11"; for (int i = 0; i < fileName.GetLength(); i++) { if (!(PathGetCharType(fileName[i]) & GCT_LFNCHAR)) { bValid = FALSE; break; } }Do not forget to include "Shlwapi.h"
“If people never did silly things, nothing intelligent would ever get done.”
– Ludwig Wittgenstein
0 comments:
Post a Comment