Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I check that a control is registered?
Message
From
20/08/1999 23:57:47
 
 
To
20/08/1999 12:04:04
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00255904
Message ID:
00256204
Views:
30
>I am using VFP 6 SP3. I would like to ensure that various controls that I use in my forms are properly registered before I instantiate the form; a specific example is the Dynazip control we use for supporting backups.
>
>I am aware of the VFP Foundation Class Registry classes, but the Dynazip controls register themselves only as GUIDs and we have not been able to find a way to "search" the registry (as we would do with RegEdit).
>

If you addrsss the control by name, then there will be an entry under HKEY_CLASSES_ROOT that matches that name; for example, if you CREATEOBJ('Word.Application'), there has to be an entry HKEY_CLASSES_ROOT\Word.Application for CREATEOBJ() to work.

>Can anyone tell me how to determine if the Registry includes an entry for "abcdefg.dll" ?
>

The problem is that there can >1 entry; you coudl recurse through HKEY_CLASSES_ROOT and check the InProcServer32 entry for each entry, but that'd take forever...
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform