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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to tell if users will have .ocx files for ActiveX controls?

Status
Not open for further replies.

billschu

Technical User
Apr 3, 2001
38
US
Hello,

I am using two ActiveX controls for my application - the Microsoft Common Dialog control 6.0 and the Microsoft ProgressBar control 6.0 (which is included in the Microsoft Windows Common Controls 6.0 mscomctl.ocx file). I am never quite sure when I use an ActiveX control whether my end users will have the .ocx file so I am a bit reticent to use them. Is there a way to verify this (with perhaps certain assumptions that they will have MS Access 2000 and MS Office installed already). Also, does the file necessarily have to be in the exact same path that I have it in - for example C:\WINNT\system32.

Thanks,
Bill
 
I tried using controls on forms, and it was problematic at best. I ended up searching for replacement code (available here too, but also from fms' code library product) which I loaded into dedicated modules, and never dealt with ocx's again.

Having said that, you could try including the ocx files with your installation package, trapping for the missing file error, and handling the registry issues in code. It was too daunting for me, so I went the route I mentioned above.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top