I\'ve got most of the code for writing a value to the windows registry, however when I change the path to a dummy key and value that I\'ve set up for testing it fails. My code
I feel silly. The solution is that need to properly escape the slash in the string as follows:
LPCTSTR sk = TEXT("SOFTWARE\\TestSoftware");
Hopefully someone finds this useful...