I want to use the Windows 'SetFileAttributes' function for hiding a file (since Qt 4.4.3 has no function for hiding files, as I know of!?).
The name of the file I want to hide is stored in a QString.
My problem is that the 'SetFileAttributes' function takes the file name as an argument of type 'LPCTSTR', so how on earth to I send the file name in the QString as an 'LPCTSTR' to the 'SetFileAttributes' function?
I use Qt 4.4.3 and MSVC 2005.
Thanks for all help!
Urban
Bookmarks