What’s the simplest way to read a registry key value to std::String?
Say I’ve got :
HKEY_LOCAL_MACHINE / SOFTWARE / MyApp / value1 = "some text"
HKEY_LOCAL_MACHINE / SOFTWARE / MyApp / value2 = "some more text"
How do I get those values to std::string in a fast way ?
I have some very old code, but it should give you a good idea: