Solved

winsock ocx question

Posted on 2001-08-18
3
498 Views
Last Modified: 2013-11-13
I have created a program that makes use of the winsock ocx, and the program (when compiled) works fine on the computer it was created on, as well as a few other computer.  On some computers, however, I get the error "Failed to load control 'Winsock' from MSWINSCK.OCX.  Your version of MSWINSCK.OCX may be outdated.  Make sure you are using the version of the control that was provided with your application."

I have tried copying the mswinsck.ocx from the original computer into the application directory and into the windows system directory (replacing the one that was installed on that computer originally), but nothing seems to work.

Any help with this issue would be greatly appreciated.

Thank you
0
Comment
Question by:Rich-Hard
3 Comments
 

Expert Comment

by:serineni
ID: 6402857
hi,
did you tried creating a packege of the program and install on the new computer .. if not try doing it. this may solve you problem

cheers
0
 
LVL 8

Accepted Solution

by:
glass_cookie earned 75 total points
ID: 6405423
Hi!

The reason why you're getting this message could be due to the fact that the other user's PC has a version of winsock higher than yours.  ie. He has winsock from VB6 when yours is VB5.  By replacing his version of winsock, it may be dangerous as it was registered as that particular newer version.

One method would be to install your VB on that PC (sorry... can't think of anything else), recompile your app using his newer version of winsock.  It's kind of tedious though.

That's it!

glass cookie : )
0
 

Expert Comment

by:bppraveen001
ID: 6405931
Hi Rich-Hard,
    What ever glass cookie has told is right but there might be one more solution that is.. better you package your application and run in the system u need and while packaging your application give for all the system files where to install path as "AppPath" so when you are installing your application in some other system it will not search for the files in the system directory and it will install all the required files to the Application Directory at that time it may work...

bpp
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

The purpose of this article is to demonstrate how we can use conditional statements using Python.
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
The viewer will learn how to implement Singleton Design Pattern in Java.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now