Solved

winsock ocx question

Posted on 2001-08-18
3
500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

943 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

11 Experts available now in Live!

Get 1:1 Help Now