I have the following problem: Suppose there's the key "HKLM\SYSTEM\CurrentControlSet\Services\test" in the registry with the value "LastApp" as REG_BINARY with content "xiii.exe". As binary it isn't shown as plain text but as hex-code "58004900490049002E006500780065000000".
Code: Select all
wxString regData;
wxRegKey* regKey=new wxRegKey("HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\test");
regKey->QueryValue("LastApp", regData)
message(regData); // only shows a message box with the string
I've got to workaround but there must be a simpler way:
a) I can export the value with regedit into a file and open the file afterwards.
b) I can set a pointer to regData, read every second letter and write this to a new string pointer. (So I hope that there is a end at some time...)
Could someone help?
Thanks, Dee