So I'm trying for practice to use a registry function to change the REG_SZ wallpaper key to a string that points to an image on my desktop. I read Microsoft's web site on how to use the function and such etc. I've tried to use it but it won't work even though it compiles. IT doesn't change the Wallpaper registry key.
What am I doing wrong below? I'm sure it's something stupid. This c++ is hard for me lol sometimes I feel like giving up ugh. What does it take to learn all this stuff?
While I appreciate you spotting that I removed that semi-colon the code when it is ran does NOT change the wallpaper string in the registry. Unfortunately. What's up? Any ideas?
This is probably because you compiled with Unicode enabled, but you're trying to write a narrow string literal into the registry.
Thanks for you help. I will have you know that all of a sudden it just worked (perhaps when I compiled in Visual studio vs dev cpp). Then it did change the registry lol. Can you explain what you mean though Unicode narrow string literal etc?