Click here to Skip to main content
15,892,674 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Help need in 2-dimenstion array Pin
Christian Graus17-Feb-08 19:12
protectorChristian Graus17-Feb-08 19:12 
Generalmscomctl - whats is it? its giving problem in upgrading VB6 to VB.Net Pin
sarat17-Feb-08 18:56
sarat17-Feb-08 18:56 
GeneralRe: mscomctl - whats is it? its giving problem in upgrading VB6 to VB.Net Pin
Christian Graus17-Feb-08 19:02
protectorChristian Graus17-Feb-08 19:02 
GeneralRe: mscomctl - whats is it? its giving problem in upgrading VB6 to VB.Net Pin
sarat17-Feb-08 19:55
sarat17-Feb-08 19:55 
GeneralRe: mscomctl - whats is it? its giving problem in upgrading VB6 to VB.Net Pin
sarat17-Feb-08 20:59
sarat17-Feb-08 20:59 
GeneralOn Screen Keyboard Pin
Jonathan Gibbs17-Feb-08 14:46
Jonathan Gibbs17-Feb-08 14:46 
GeneralRe: On Screen Keyboard Pin
Christian Graus17-Feb-08 16:40
protectorChristian Graus17-Feb-08 16:40 
QuestionBinary File Parser Pin
who needs to know?17-Feb-08 12:07
who needs to know?17-Feb-08 12:07 
I'm trying to build a program that does the following. I think I can do everything but make the program load a 20 MB Binary file from the C:\ drive, and:

1. Take a pair of bits from the beginning of the file
2. Consider the bits, and do the following:
--If they are 00 or 11, toss both of them from the file.
--If the are 01 or 10, keep the first bit, and toss the second one from the file.
3. Move on to the next 2 bits. Repeat.

It needs to do this to the entire file. I plan to simply type in the file location (Like c:\documents and settings\my user name\my documents\randump\dump1.bin) into a text box. It is named "find". The parse will be started by a button named "parse".

There are just possible problems:
1. There is a big chance that the amount of bits removed won't be divisible by 8. This will create an uneven byte at the end. Does the computer care, or should I be worried?
2. When the binary files are opened in notepad, they look like characters. The program needs to see the bits, not characters.

I'm a VB noob, so can somebody show me how one is to do this?

And if you need any more information about the form setup, please ask.

Thanks in advance
(I'm not in classes. This ain't homework. I learned everything I know from trial and error, and if I tried that with this, I'd be at this computer until the ends of time.)
GeneralRe: Binary File Parser Pin
Steve Westbrook17-Feb-08 14:02
Steve Westbrook17-Feb-08 14:02 
GeneralRe: Binary File Parser Pin
who needs to know?17-Feb-08 14:58
who needs to know?17-Feb-08 14:58 
GeneralRe: Binary File Parser Pin
Colin Angus Mackay18-Feb-08 0:18
Colin Angus Mackay18-Feb-08 0:18 
GeneralRe: Binary File Parser Pin
Steve Westbrook18-Feb-08 6:16
Steve Westbrook18-Feb-08 6:16 
QuestionRe: Binary File Parser [modified] Pin
who needs to know?18-Feb-08 7:28
who needs to know?18-Feb-08 7:28 
GeneralRe: Binary File Parser Pin
Steve Westbrook18-Feb-08 7:37
Steve Westbrook18-Feb-08 7:37 
GeneralRe: Binary File Parser Pin
who needs to know?18-Feb-08 7:38
who needs to know?18-Feb-08 7:38 
GeneralRe: Binary File Parser Pin
who needs to know?18-Feb-08 7:41
who needs to know?18-Feb-08 7:41 
GeneralRe: Binary File Parser Pin
Steve Westbrook18-Feb-08 8:00
Steve Westbrook18-Feb-08 8:00 
GeneralRe: Binary File Parser Pin
who needs to know?18-Feb-08 8:03
who needs to know?18-Feb-08 8:03 
GeneralRe: Binary File Parser Pin
Steve Westbrook18-Feb-08 8:25
Steve Westbrook18-Feb-08 8:25 
GeneralRe: Binary File Parser Pin
who needs to know?18-Feb-08 8:04
who needs to know?18-Feb-08 8:04 
GeneralRe: Binary File Parser Pin
who needs to know?18-Feb-08 7:47
who needs to know?18-Feb-08 7:47 
GeneralRe: Binary File Parser Pin
Steve Westbrook18-Feb-08 8:09
Steve Westbrook18-Feb-08 8:09 
GeneralRe: Binary File Parser Pin
who needs to know?18-Feb-08 8:18
who needs to know?18-Feb-08 8:18 
GeneralRe: Binary File Parser Pin
Steve Westbrook18-Feb-08 8:27
Steve Westbrook18-Feb-08 8:27 
GeneralRe: Binary File Parser Pin
who needs to know?18-Feb-08 8:42
who needs to know?18-Feb-08 8:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.