Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple OCX question
Message
 
 
To
07/12/2001 10:05:30
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00591140
Message ID:
00591185
Views:
26
>Chaps and Chapesses
>
>Im sure this is dead simple, how do I from with a foxpro application (VFP5,VFP6 and VFP7) tell if an OCX is registered. ie MSCAL.OCX.
>
>Un/Registering is no problem but I want to know first whether its registered or not so Im not delaying program execution by re-registering already registered OCX files.

On your own computer, register a control using RegSvr32 [this is probably already done]. To get the info about the control, use RegEdit to edit the registry. Look in the HKEY_CLASSES_ROOT hive. For the monthview control, the key you are looking for is MSComCtl2.MonthView.2. I think what you may be looking for is MSCAL.Calender

What I do is store this information in a VFP table, then use a Registry class to see if these keys and values exist in the registry. If not I register them. Just remember to use the /s switch to do a silent registry of the control. You can also type RegSvr32 with no parameters or switches to get a list of switches.
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform