>Well here is my problem. I want to use an OCX but some computers do not have the control. is there a function to verify if the user has the control?
>or
>
>Do I need to search the registry and if I search the registry how do I verify the license.
>
>or
>
>Do I just register the OCX every time I start the Application?
>
>How is everyone else doing this?
>
>Thanks Ron
>
Hi,
The control will be in the Windows\System or System32 (on NT, I think) directory. If it is there, it should be registered. If you have doubts, that's when you need to check the registry. That's the easiest way to tell if the user has the control. In general, the installation program will install the control, and warn if the version on the target machine is newer than the one being installed. You can, however, do this chore manually by using AGETFILEVERSION() in VFP 6.0 or the foxtools GetFileVersion() in VFP 5.0 and comparing the version numbers (in the fourth array element) against each other. To register the control you can RUN the REGSVR32.EXE with the /S parameter to register the control if you copy it to the user's machine.
ActiveX version problems can be a major PITA.
George
Ubi caritas et amor, deus ibi est