what is My ?
is that an object ?
debasisdas
Posting Genius
6,872 posts since Feb 2007
Reputation Points: 666
Solved Threads: 434
Use VB.Net.... not VB 6 :)
Seriously, I like VB6 a thousand times more than .NET, but the fact is, that code is meant for the .NET platform. VB 6 is not quite that object oriented and structured. I suggest however, that to do the same thing in VB6, use WSH. Using the native VB commands to modify the registry (all API Calls) is really ugly. So I guess something like:
Dim wsh
Set wsh = CreateObject("WScript.Shell")
wsh.regwrite "HKCU\testkey\", "hi", "REG_SZ"
Set wsh = Nothing
Comatose
Taboo Programmer
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215