Question : Add New REG_DWORD type Hexadecimal base Key in Registry using VB6

I have developed VB6 Application.

Using this application I want to create some new key in registry.

I Can create New Kay in registry successfully when Key type = REG_SZ but, I want to create new Key for Type = REG_DWORD, Base = Hexadecimal and value data= 0.

How can I create this type of entry in Registry?

Also, How can I run .reg file using VB6.?

Answer : Add New REG_DWORD type Hexadecimal base Key in Registry using VB6

For REG_DWORD you need to se the size to DWORD value which is 4, Where as for REG_SZ you set the size to the Length() of the string.
Random Solutions  
 
programming4us programming4us