I am using the following code to read some information from the registry:
nbufferdata = Space(256)
RegOpenKey LOCALMACHINE, MainKey, nBufferKey
RegOpenKey nBufferKey, SubKey, nBufferSubKey
RegQueryValueEx nBufferSubKey, Item, 0, REG_SZ, nbufferdata, Len(nbufferdata)
it works fine, but nbufferdata contains a lot of characters that are not part of the information read from the registry.
I know there's a simple procuedure to remove these but cant think of what it is, can anyone help??