Ok, I finally made it myself, using the following:
/UrbanQt Code:
SetFileAttributes((LPCTSTR)fileName.utf16(), FILE_ATTRIBUTE_HIDDEN);To copy to clipboard, switch view to plain text mode
Ok, I finally made it myself, using the following:
/UrbanQt Code:
SetFileAttributes((LPCTSTR)fileName.utf16(), FILE_ATTRIBUTE_HIDDEN);To copy to clipboard, switch view to plain text mode
Are you sure that works? The abbreviation LPCTSTR means a pointer to a c-style constant string, or const char *, and your returning a WCHAR, which is an array of unsigned shorts.
Well, let's just say I tried, and tried, and tried even more. What I wrote at least works fine for all the tests I've done, but if anyone has a better idea I'd be very glad to learn.
Bookmarks