problem with binary registry value
Posted on 2003-03-25
Hi 2 all,
I wrote a function to get a STRING value out of my registry.The interessting part is this one...
RegOpenKeyEx(hMainKey, szSubKey, 0, KEY_QUERY_VALUE , &hOpenedKey)
DWORD cbData = (DWORD)20;
cout << r_value << endl;;
It worked fine, but now I have a BINARY value with exactly the same content as the string value.
But in the "cout-line" it only shows me a stupid smily.
How can I manage it to get the value as a string?I also tryed to set the "lpType"-property to "REG_BINARY", but no difference at all....
Please help me...