Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Do I need to register every OCX ?
Message
 
 
To
27/11/2001 12:46:26
Fausto Garcia
Independent Developer
Lima, Peru
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00586446
Message ID:
00586476
Views:
89
This message has been marked as a message which has helped to the initial question of the thread.
>Hello friends,
>
>Given an OCX control I need to use in my apps, how can I know if I need to register it on every user's PC so it runs properly?
>
>Someone told me that it wouldn't be necessary to register it, but I've checked the OCX I'm interested in (comct232.ocx) and it is registered on my PC.
>
>Thanks for your help,

You have to register it. AFAIK, all OCXs require registration. Use Regsvr32 to register the OCX.

Not all OCXs support self-regsitration but that's a different topic. If an OCX supports self registration then it exports the following functions:

DllRegisterServer()
DllUnregisterServer()

and you can use these functions to register/unregister your OCX file in your code with the following syntax:
declare integer DllRegisterServer in MyActiveX.Ocx
declare integer DllUnregisterServer in MyActiveX.Ocx

DllRegisterServer() && registers my control
DllUnregisterServer() && unregisters my control
HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform