Reading a Binary file using Visual Basic

Reply

Join Date: Dec 2006
Posts: 4
Reputation: isocam is an unknown quantity at this point 
Solved Threads: 0
isocam isocam is offline Offline
Newbie Poster

Reading a Binary file using Visual Basic

 
0
  #1
Dec 5th, 2006
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, 42 views)
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,362
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1464
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: Reading a Binary file using Visual Basic

 
0
  #2
Dec 5th, 2006
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.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 4
Reputation: isocam is an unknown quantity at this point 
Solved Threads: 0
isocam isocam is offline Offline
Newbie Poster

Re: Reading a Binary file using Visual Basic

 
0
  #3
Dec 6th, 2006
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, 57 views)
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC