Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is an OCX Registered
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00180707
Message ID:
00218109
Vues:
32
>>>>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,
>>
>>Perhaps you can help. I need to register ComCtl32.OCX on user machines and run the .app from the server ( hence, no 'real' setup process ).
>>
>>can I use the following to register this control:
>>
>>REGSVR32 /S COMCTL32.OCX
>
>>If so, should this be ran from a DOS window? The "Run" menu option ???
>>
>>TIA
>
>Hi Larry,
>
>I'd try this (from within VFP):
>
>RUN /N REGSVR32 /S COMCTL32.OCX
>
>The /N switch will keep the DOS box from showing. the /S (passed to REGSVR32) runs it in silent mode. There's no guarantee, however, that I'll succeed.
>
>If I might ask, why not let the setup wizard take care of this?

Certainly,

The reason I'm not using the setup wizard is that I want the .app file and the data to reside on the server and have the users open VFP ( again, on the server ) to run the .app file ( on the server ).

The app uses the M$ Comm control to dial the phone via modem so the control must exist on each PC even though the application does not, correct? No, wait... since VFP's running from the server, the Comm control only needs to reside on the server... Hmmm, I'll try this approach...

I've never been able to settle on a solid approach to multi-user apps so I would be interested to hear how other do it. I've used .exe files and .app files both local and on the server. Which is "best"?

TIA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform