It never seemed to do that properly before - probably a buggy implementation *looks daggers at microsoft*



What if you're looking it up from the Registry then, or from user input in a text box...

PS: Most of this stuff will be transparent when you stick to C++, but the Windows API isn't template-based (yet ) so you have to mess around sometimes.

PPS: I wonder if that transparent conversion extends to stringstreams...