Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple OCX question
Message
From
07/12/2001 13:39:48
 
 
To
07/12/2001 11:53:43
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00591140
Message ID:
00591326
Views:
25
>mmmmmm yep it works but it seems very longwinded to get a simple piece of information. There must be an API call that you can pass the name of an OCX to and it will return whether it is registered or not.

No, because you don't refer to the OCX, you refer to the name of the class (ProgID) registered in HKEY_CLASSES_ROOT or the unique identifier (CLSID) in HKEY_CLASSES_ROOT. The only place you will find the file name at all is in the InProcServer32 registry subkey of the CLSID in the case of an OCX. The file name has nothing (zero, nil, nada, nunca) to do with the classes it contains; a single file can contain several classes, and more importantly, a given file name can have different contents. You have to find things by their registry name, not the name of the file.
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
Next
Reply
Map
View

Click here to load this message in the networking platform