I need to access to the Windows Registry sush as set it value or get value from it. So, this is my code:
Dim m_hKey as long
Dim data as String
data = "Hello, World"
RegCreateKey HKEY_LOCAL_MACHINE, "Software\JOM", m_hKey
RegSetValue m_hKey, "MyWord", 0, REG_SZ, data, Len(data)
the result is, the subkey JOM was created and Value name MyWord was created ,too but its value was not "Hello, World", there are 2-3 characters.
How can I do.?