Hi everyone,
i have spent quite a few hours trying to solve this puzzle.. for some reason i cannot test for a matching string i input via the console app i am writing with an 'If' query. The returned values are always everything except what i need "the typed in Drive" i.e. 'F:'.
What type is uLogicDriveList? It affects the right shift, and thus the while loop.
As I recall, GetLogicalDrives() returns a bit for the relevant drive, so you need to test the bit positions.
What type is szDriveString and what is it's content? The type will determine what szDriveString == szDrive means, and that determines what you see printed.
If szDriveString is a char array then you need to compare the strings with strcmp instead of ==.
I see that szDrive has a leading space. When you read szDriveString at line 11, the stream will probably skip leading spaces, even if you put them there.