>I downloaded Rick's class, and I'm using it to determine the location
>of a DLL I created in VFP:
>
>
>** Instantiate Rick's class
>SET PROCEDURE TO registry.prg
>oReg = CREATEOBJECT('registry')
>
>** instantiate the VFP DLL and get the GUID
>oDll = CREATEOBJECT("mydll.myclass")
>cGuid = ADDBS(COMCLASSINFO(oDll, 4))
>
>** Form the parameter values
>nHKey = HKEY_CLASSES_ROOT
>cSubkey = "\CLSID\" + cGuid + "InProcServer32"
>cEntry = "(default)"
>
>? oReg.ReadRegistryString(nHKey, cSubkey, cEntry)
>>
>The ReadRegistryString function is returning NULL, and the
>parameters are correct. The entry IS in the registry.
>
>The installed path of the DLL is in the "(Default)" key.
>Note the
>
>ADDB() on:
>
>cGuid = ADDBS(COMCLASSINFO(oDll, 4))
Sorry, missed that. I see the problem now. The cEntry is the problem. (default) does not work. Modify your code to call the function GetEnumValues instead and step through the code using the debugger. The value in the array for default is actually 0 [zero].
Mark McCasland
Midlothian, TX USA