Click here to Skip to main content
15,924,193 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Problem in VS 2005 Pin
Christian Graus12-Aug-08 21:56
protectorChristian Graus12-Aug-08 21:56 
GeneralRe: Problem in VS 2005 [modified] Pin
Golden Jing12-Aug-08 22:06
Golden Jing12-Aug-08 22:06 
GeneralRe: Problem in VS 2005 Pin
Christian Graus12-Aug-08 22:13
protectorChristian Graus12-Aug-08 22:13 
GeneralRe: Problem in VS 2005 [modified] Pin
Golden Jing12-Aug-08 22:21
Golden Jing12-Aug-08 22:21 
GeneralRe: Problem in VS 2005 Pin
Christian Graus12-Aug-08 22:36
protectorChristian Graus12-Aug-08 22:36 
GeneralRe: Problem in VS 2005 Pin
Golden Jing12-Aug-08 22:52
Golden Jing12-Aug-08 22:52 
QuestionReading a file bit by bit [modified] Pin
ibigpapa12-Aug-08 15:23
ibigpapa12-Aug-08 15:23 
AnswerRe: Reading a file bit by bit Pin
MikeMarq12-Aug-08 16:01
MikeMarq12-Aug-08 16:01 
ibigpapa wrote:
I want to read a file into a program bit by bit not by bytes. I attempted to use the binary reader it returned byte instead of bit. I don't really want an example as much as i would like to know the class or function i should be using to do so.


I don't know of any such class or function and I would be suprised if it is part of the standard .net library because computers are designed to work on whole bytes not bit by bit.


ibigpapa wrote:
I don't know if maybe i need to convert the number returned by the binary reader to binary in order to do so. I would assume there is another way to do this.


Computers always store numbers as binary so there is no need to convert anything. You can find out the bits by using 8 bitwise AND operation per byte. This example uses standard numbers but I would recommend you look up binary and bitwise operations so you can understand why this example works. It goes something like this:

result = byte AND 1
result = byte AND 2
result = byte AND 4
result = byte AND 8
result = byte AND 16
result = byte AND 32
result = byte AND 64
result = byte AND 128


Each time test if result is > 0. If it is then the bit is 1 if not then it is zero.
AnswerRe: Reading a file bit by bit Pin
JoeSharp12-Aug-08 21:21
JoeSharp12-Aug-08 21:21 
QuestionUsing pointers and passing ByRef in Visual Basic Pin
Adam Loudermilk12-Aug-08 10:58
Adam Loudermilk12-Aug-08 10:58 
AnswerRe: Using pointers and passing ByRef in Visual Basic Pin
MikeMarq12-Aug-08 15:08
MikeMarq12-Aug-08 15:08 
GeneralRe: Using pointers and passing ByRef in Visual Basic Pin
Adam Loudermilk13-Aug-08 9:18
Adam Loudermilk13-Aug-08 9:18 
QuestionHow to speed up array processing Pin
cstrader23212-Aug-08 10:26
cstrader23212-Aug-08 10:26 
AnswerRe: How to speed up array processing Pin
Dave Kreskowiak12-Aug-08 16:48
mveDave Kreskowiak12-Aug-08 16:48 
GeneralRe: How to speed up array processing Pin
cstrader23213-Aug-08 8:55
cstrader23213-Aug-08 8:55 
QuestionCan I use VB.net and XML to read/write a MS access database in the web-site? Pin
ATC12-Aug-08 9:58
ATC12-Aug-08 9:58 
AnswerRe: Can I use VB.net and XML to read/write a MS access database in the web-site? Pin
Mycroft Holmes12-Aug-08 18:02
professionalMycroft Holmes12-Aug-08 18:02 
GeneralRe: Can I use VB.net and XML to read/write a MS access database in the web-site? Pin
ATC13-Aug-08 8:41
ATC13-Aug-08 8:41 
GeneralRe: Can I use VB.net and XML to read/write a MS access database in the web-site? Pin
Mycroft Holmes13-Aug-08 14:21
professionalMycroft Holmes13-Aug-08 14:21 
GeneralRe: Can I use VB.net and XML to read/write a MS access database in the web-site? Pin
ATC13-Aug-08 15:43
ATC13-Aug-08 15:43 
QuestionFire an event in VB.net by SQL Server Trigger Pin
manisghouri12-Aug-08 7:23
manisghouri12-Aug-08 7:23 
AnswerRe: Fire an event in VB.net by SQL Server Trigger Pin
Manas Bhardwaj12-Aug-08 7:35
professionalManas Bhardwaj12-Aug-08 7:35 
AnswerRe: Fire an event in VB.net by SQL Server Trigger Pin
Scott Barbour12-Aug-08 11:35
Scott Barbour12-Aug-08 11:35 
AnswerRe: Fire an event in VB.net by SQL Server Trigger Pin
Dave Kreskowiak12-Aug-08 16:47
mveDave Kreskowiak12-Aug-08 16:47 
QuestionCurrent Cell and the DataGridView [modified] Pin
Rafone12-Aug-08 6:01
Rafone12-Aug-08 6:01 

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.