Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Effortless install of ActiveX
Message
 
 
À
05/09/2001 11:26:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00552482
Message ID:
00552566
Vues:
19
Does not hurt to register an existing OCX. They usually are found in the WinSys folder if you want to check for their existence first. If you want to check if they are registered, you first need to register them on your computer, then check the registery to see where they are. Then check the value of those keys on client PCs using your VFP PRG. If these keys or string values are missing, then register the OCX. Don't try adding the registry entries yourself because you will most likely miss something.

>Thanks Mark
>
>Just one last thing. Is there a formal way of checking for the existence of a DLL/OCX rather than checking for the file(s)? or is it Ok to just do a REGSVR32 over and over without checking for it's existence?
>
>THanks
>Kev
>>It depends on the actual error message. The most common is invalid license. This basically means you have a developer license installed on your PC but not on the end-users. This is usually caused by programmaticaly adding the control to a container object. The work around is to subclass the control by dropping it onto a form. Then you instanciate that subclass and work from there.
>>
>>>Mark
>>>
>>>On another note about ActiveX controls, why is that some errors (ie 1426) come up all the time, and the error traps ignore these errors - what are they exactly?
>>>
>>>Thanks
>>>Kev
>>>>Yes.
>>>>
>>>>>Thanks Mark
>>>>>
>>>>>So I just need the OCX?
>>>>>
>>>>>Kev
>>>>>>You can run RegSvr32 in Silent mode with the /s switch. For a list of switches, type RegSvr32 /? in the RUN combobox.
>>>>>>
>>>>>>>Hi
>>>>>>>
>>>>>>>I want to distribute an ActiveX control onto all the PC's that use my app.
>>>>>>>
>>>>>>>Here's the tricky part - I want it done automatically with as little user-intervention as possible, the main reason being that most of our users use the app on their notebooks as a standalone and some people use it on PC's running from the server.
>>>>>>>
>>>>>>>The only thing I could think of was to run REGSVR32 and put this into a program that would run before the app.
>>>>>>>
>>>>>>>Any ideas?
>>>>>>>Thanks
>>>>>>>Kev
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform