>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()
DllUnregisterServer()
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao