I want to ask if dealing with binary files is different in win98 and winXP because a program that I wrote in VB6 under win98 environment does not work under WinXP. It is about reading a binary file, diving it into pieces and then sending the pieces via Winsock. It does read the file but it does not make its pieces as it should (using left(), and mid()). Its like this:
Now either winsock does not send the data, or it creates an error or there's a problem with diving the data, because the data "boxes" never reach at the receiving end successfully. Whats wrong?Code:'read the binary file and save data in "data" string variable dim partoffile as string partoffile=left(data,8192) 'clipping the first 8 KBs of data data=mid(data,8193) winsock.senddata partoffile




Reply With Quote