Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Registry/OCX Questions
Message
From
19/03/1999 13:37:48
 
 
To
19/03/1999 12:07:22
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00199795
Message ID:
00199873
Views:
11
>Ok - you Registry gurus - question for you.
>
>Where in registry (registry path) is the entry created when an ocx is registered. I would like to see what a registered entry looks like and what happens when my ocx is registered.
>
>Also - sort of related question - what determines what available controls show up in my choice list when I add an OLE bound control to a form? Obviously this info isn't coming form registry since I've tried to use controls from the list that have proven to be unregistered (no license found) is it?
>
>TIA!
>Ken

Use Regedit and navigate to HKEY_CLASSES_ROOT\CLSID. Listed there are all the GUIDs associated with your ActiveX and COM objects. Look in the desciption of each field to get its name, and scroll down to that name to find its other entry.

When you drop an ACtiveX control onto a form, it's GUID is stored in the form definition, and when the form is opened or run, the related ocx file is looked up directly from that GUID. But when you instanciate an ActiveX control or COM object with CREATEOBJECT('MyServer.MyClass') the system looks up MyServer.MyClass in HKEY_CLASSES_ROOT, finds it's GUID from there, looks up the GUID in HKEY_CLASSES_ROOT\CLSID, and finds the file from that entry.

This is why it can be advantageous to instanciate the controls in code, because versioning is less of an issue: the GUID is looked up dynamically from the control name.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform