Discussion Locked

Problem with VB program and WIN2K Pro

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hai friends,

I created a chat app in VB5 under Win98 using Winsock control. I made a EXE of both client and server apps. When I run the server or client EXE in a system with OS WIN2K Pro, it shows me an error which states that MSWINSOCK.OCX file or it's dependencies are missing or lost. There is no such file in win2k pro and it is only in Win98. But there is a Dll for sockets in this OS. Another thing is the forms get loaded and I think during socket instantiation only that error comes and program stops. Is copying that OCX fix my problem or any other solution?. Pls help me.

Bye.

1 reply

by mohammad_m_saggaf

You must register the winsock component as folloing:
1- copy the MSWINSOCK.OCX file to the system32 folder.
2- go to start menu -> run.
3- register it by typing:
REGSVR32 MSWINSOCK.OCX

This discussion is closed to new replies.