944,028 Members | Top Members by Rank

Ad:
Dec 5th, 2006
0

Reading a Binary file using Visual Basic

Expand Post »
Can anybody help with the attached project ("Binary.zip")

In the folder there is a binary file ("Mazatrol.dat") that I am trying to read. I cannot get the code to work correctly. Can somebody please see if they can update the visual basic project, and tell me what I am doing wrong.

Please see the attachment ("Binary.zip")

Many thanks

Darren (isocam)
Attached Files
File Type: zip Binary Files.zip (7.0 KB, 93 views)
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
isocam is offline Offline
4 posts
since Dec 2006
Dec 5th, 2006
0

Re: Reading a Binary file using Visual Basic

In function cmdReadValues_Click() check that file_length > 0. The file in your zip is an empty file.

Otherwise, I don't see any problems with that program. Just make sure you click the Write button first to generate the file.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,953 posts
since Aug 2005
Dec 6th, 2006
0

Re: Reading a Binary file using Visual Basic

I have attached a new file Called "Binary Files.Zip" this now, contains, the binary file that I want to read/convert. Can somebody please have a quick look at it again, to see if the coding is correct.

Many thanks for your help.

Darren (isocam)
Attached Files
File Type: zip Binary Files.zip (13.7 KB, 98 views)
Reputation Points: 10
Solved Threads: 0
Newbie Poster
isocam is offline Offline
4 posts
since Dec 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: drawing in picturebox
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Helping!





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC