Archive: WriteRegDWORD with two words


WriteRegDWORD with two words
Im trying to make a XP registry. Everything goes well with WriteRegStr, but Im running into trouble when I use WriteRegDWORD.

I want to do this:

WriteRegDWORD HKLM "SOFTWARE\Mysoftware" "Language" "English"

- but I can't, it just makes an empty box in the registry where there should have been the word: English.

Why is this and is it possible? I tried with WriteRegStr and here it works fine.


Because a DWORD is a number, not a string. To write strings you can only use WriteRegStr. Use WriteRegDWORD if the requested type of registry value should be a DWORD.