|
-
April 13th, 2001, 10:03 PM
#1
Winsock.dll Question
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
-
April 14th, 2001, 10:57 AM
#2
Re: Winsock.dll Question
Try registering the dll using regsvr32.exe
Why don't you do it using the WinScok control that comes with Visual Basic?
-
April 15th, 2001, 11:17 AM
#3
Re: Winsock.dll Question
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
Good Luck,
-Cool Bizs
-
April 15th, 2001, 07:20 PM
#4
Re: Winsock.dll Question
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
-
April 15th, 2001, 10:22 PM
#5
Re: Here was the problem
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|