Re: Problems sending binary files using Winsock control
Originally Posted by the182guy
Thats strange............I tried the WinsockVB example that you said didnt work for you, and it works fine here. Did you modify the code or something?
Thank you very much for your help.
Of course I didn't modify the code. There has to be something wrong with my windows xp pro sp2 I suspect and I tried not only these two examples but also others found in google. Most of them work properly sending text files but not binary files. (I can send plain text files using the winsockvb example with no problem but not binary files.)
Would it be an issue with the version of the mswinsock.ocx located in the windows\system? I really have no clues on why it behaves like this,
Please advise, thank you very much to you all.
Last edited by iamsuperman; Feb 25th, 2006 at 01:04 AM.
Re: Problems sending binary files using Winsock control
It could be the mswinsck try replacing your mswinsck.ocx file with the one attached to this post. Thats the one I use and it works fine. On win2k its in system32 i think its the same for xp
Re: Problems sending binary files using Winsock control
Originally Posted by the182guy
It could be the mswinsck try replacing your mswinsck.ocx file with the one attached to this post. Thats the one I use and it works fine. On win2k its in system32 i think its the same for xp
Thank you very much for your help
I have overwritten the mswinsck.ocx in c:\windows\system32 with your file but the situation still remains the same. The file received in the client end still gets corrupted in the same way as before. It seems there has nothing to do with this file.
Re: Problems sending binary files using Winsock control
Originally Posted by the182guy
Are you running any software that could be interfereing? packet sniffets things like that.
Try creating a little winsock program that sends and receives data, and send some data to see how its being corrupted.
What about your ineternet connection? Are you using a wireless network?
I am just having NAV running in the background and I am testing the programs on a single machine using 127.0.0.1, would this be the cause of this problem?
Re: Problems sending binary files using Winsock control
there are other files that winsock uses some dlls not only the ocx. So try downloading the vb runtime library and installing it again incase any of the files are corrupted or missing
Re: Problems sending binary files using Winsock control
Originally Posted by the182guy
there are other files that winsock uses some dlls not only the ocx. So try downloading the vb runtime library and installing it again incase any of the files are corrupted or missing
Thanks a lot for your help.
I downloaded the file and installed it successfully and soon the windows prompted me to insert the XP CD-ROM because some files were overwritten with copies of unidentified version, I didn't insert and clicked "cancel". I guess it's ok so I run the program again but unfortunately I got exactly the same corrupted temp.bmp file once again.
This is really strange and funny.
Anyway, thank you very much for your help so far.