Click to See Complete Forum and Search --> : Winsock.dll Question


r00t
April 13th, 2001, 10:03 PM
Hi,

I am doing some socket programming in VB using the 'winsock.dll' library. I have declared my all my API functions and such, but I get a run-time error #48 of "File not found: winsock.dll". I have ensured that there is an uncorrupted version of this file in my system directory (\WINNT\System32\) and that my environment variable 'path' in NT includes this directory. What could possibly be wrong??? I can't see why Visual Basic can't find this file. If anyone else has had this trouble, please let me know how you fixed it.

ThanX much,
Campbell

shree
April 14th, 2001, 10:57 AM
Try registering the dll using regsvr32.exe

Why don't you do it using the WinScok control that comes with Visual Basic?

coolbiz
April 15th, 2001, 11:17 AM
Are you importing the functions from Winsock Library? If so I do remember that some of the functions need ws2_32.dll instead of winsock.dll.

Anyhow, you should still be able to find the winsock.dll if it is in your ..\SYSTEM32\ directory.

Maybe you declarations portion is not correctly done?

-Cool Bizs

cksiow
April 15th, 2001, 07:20 PM
maybe it's some other files. Maybe you can use the Depends utility to check it out, it come with visual studio.


cksiow
http://vblib.virtualave.net - share our codes

r00t
April 15th, 2001, 10:22 PM
I do thank you all very much; I have just made that huge step into the Windows API where I'm realizing that a lot of libraries were created on 16-bit OS's (and in VB4 =). This is no good. I simply used the 'wsock32.dll' instead of 'winsock.dll'. I found a 'wsock32.lib' file, yet no 'winsock.lib'. This was my whole problem. I really had trouble with realizing this -- Microsoft should have had mo' documentation. Hope this helps someone else as well,

Peace.