How I can convert LPBYTE to char [256]?
When I read from Windows registry value:
blah REG_SZ "blah some text"
char value[256];
DWORD keytype = REG_SZ;
DWORD dwCount = sizeof(value);
RegQueryValueEx((HKEY)key, "blah", 0, &keytype, (LPBYTE)&value, &count);
cout << "Read text from registry: " << value << endl;
after cout this it shows (screenshot):
http://i33.tinypic.com/dnja4i.jpg
(normal text + some signs)
I must compare value from registry:
if("blah some text" == value)
cout << "Kk, good read from registry\n";
How I can convert this LPBYTE value to char[256] ?