Need help with an .OCX error in my VB6 application

Hi Experts,
I added a new feature to my VB6 application.  I have installed this version of the application on a small number of computers for testing.  Some of the users have gotten an error saying that their machines are missing mscomct2.ocx.  I have solved this problem by manually copying the .ocx from my machine to theirs.  If i reference the mscomct2.ocx in my project, will that prevent users from getting this error?

Thanks in advance,
Who is Participating?
GrahamSkanConnect With a Mentor RetiredCommented:
If you want to distribute your application, you can use the Package and Deployment wizard to create an installation package that will include all the required files.
Éric MoreauSenior .Net ConsultantCommented:
>>If i reference the mscomct2.ocx in my project, will that prevent users from getting this error?

and it also need to be part of setup package
mainrotorAuthor Commented:
So, simply referencing the .OCX and creating an executable will not resolve the problem?
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Éric MoreauSenior .Net ConsultantCommented:
no because it also need to be installed (copied and registered) on any computer using your application
The OCX  will have been added as a component to your project. No other reference is needed. However, it will have to be distributed to systems that do not have it. It will need registering as well, e.g:

regsvr32 "C:\Windows\SysWow64\MSCOMCT2.OCX"

Your path may differ.

The setup in the PDW package will do that.
Martin LissOlder than dirtCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.