Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can you use an OCX without registering it?

Status
Not open for further replies.

calandrelli

Technical User
Jun 14, 2002
69
US
I have an Excel Spreadsheet that is using the MS Calendar Control 9.0 in a form. I just found out that my target audience has imaged computers and MSCAL.OCX was not installed as part of the image. The uses do not have local admin rights so they can’t register the OCX themselves. I am able to place the MSCAL.OCX in the Microsoft Office directory.

Is there a way to use the OCX programmatically even though it is not registered?
 
No. OCXs are ActiveX Controls and as such they must be registered on the local system. When a calling application references an ActiveX Control it does so using an application id. The application id is "registered" in the registry with the information about the location of the OCX file, version, and other information. As you can see, the model requires the OCX file to be registered.

stravis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top