Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Use ActiveX control without registering?
Message
 
À
10/10/2011 15:47:19
Joel Leach
Memorial Business Systems, Inc.
Tennessie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Divers
Thread ID:
01525987
Message ID:
01526003
Vues:
99
>>>I thought I read somewhere (VFP Help?) that you could use an ActiveX control without registering it as long as the OCX file is in the current directory. I can't find that statement now. Anyone know if that is correct?

I don't think so.

If your app has admin rights you can register the ActiveX control yourself with RegSvr32 ocxFile or by calling DllRegisterServer in the DLL directly via Declare. But you need admin rights for that and you should check whether the control is installed before doing that.

Other than that manifest files are pretty straight forward, but you have to register each and every interface/clsid you need to access which with ActiveX controls could be problematic since there might be quite a few.

+++ Rick ---


>>>
>>
>>It's not that simple. You have to use application manifest file to "register" it for your application http://msdn.microsoft.com/en-us/library/ms973913.aspx.
>
>I did some testing, and this is what I'm seeing: If an ActiveX control is not registered and VFP can find the OCX file, VFP will register it for you. In Windows Vista/7, this means you have to run VFP as admin. Not what I was hoping for, but this must be what I read before.
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform