Re: Ugh, stupid TCHAR problems. Anyone able to tell me how to fix this in EUcode?
- Posted by LarryMiller Jul 05, 2010
- 1387 views
Your code is incorrect.
The second parameter to GetLogicalDriveStrings() is a pointer to a buffer that holds the returned strings. It is not a pointer to a pointer. The first parameter is the length of this buffer.
The result is a series of null terminated strings. This will in the form: C:\(NULL)D:\(NULL)
(NULL) is a single zero character.
I have used this function as described and know it works.