Click here to Skip to main content
15,922,523 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionCompiling VB.Net Program Pin
AAGTHosting6-Oct-07 20:44
AAGTHosting6-Oct-07 20:44 
AnswerRe: Compiling VB.Net Program Pin
Christian Graus6-Oct-07 23:39
protectorChristian Graus6-Oct-07 23:39 
GeneralRe: Compiling VB.Net Program Pin
AAGTHosting7-Oct-07 20:28
AAGTHosting7-Oct-07 20:28 
AnswerRe: Compiling VB.Net Program Pin
Patrick Etc.7-Oct-07 1:22
Patrick Etc.7-Oct-07 1:22 
AnswerRe: Compiling VB.Net Program Pin
Vimalsoft(Pty) Ltd8-Oct-07 5:47
professionalVimalsoft(Pty) Ltd8-Oct-07 5:47 
Questionconverting ascii to char Pin
kclei6-Oct-07 20:04
kclei6-Oct-07 20:04 
AnswerRe: converting ascii to char Pin
Christian Graus6-Oct-07 23:40
protectorChristian Graus6-Oct-07 23:40 
GeneralRe: converting ascii to char Pin
Patrick Etc.7-Oct-07 1:33
Patrick Etc.7-Oct-07 1:33 
An even easier way to do this is to use ASCIIEncoding.ASCII.GetString(byte[] )

It will assume each character is encoded into 1 byte each, chopping the bits itself.

This assumes, of course, that one can read the data in as a byte. Since he's reading from a device, I suspect that isn't a problem, but if it is, you can use the BitConverter object to convert from int to byte[].

Edit:
By the way, hex 4241 (decimal 16961) is

01000010 01000001

in binary. If you notice, that is two values: 66 and 65, the ASCII codes for the letters B and A, respectively (note capitalization).

So the bytes will need to be re-ordered, also, as they are apparently Big Endian. There are methods in the .NET framework to do this as well.



The early bird who catches the worm works for someone who comes in late and owns the worm farm. -- Travis McGee

QuestionLocal DB not updated Pin
jensenx6-Oct-07 18:25
jensenx6-Oct-07 18:25 
AnswerRe: Local DB not updated Pin
jensenx6-Oct-07 18:32
jensenx6-Oct-07 18:32 
GeneralRe: Local DB not updated Pin
Dave Kreskowiak7-Oct-07 3:09
mveDave Kreskowiak7-Oct-07 3:09 
GeneralRe: Local DB not updated Pin
Paul Conrad7-Oct-07 5:49
professionalPaul Conrad7-Oct-07 5:49 
AnswerRe: Local DB not updated Pin
Guffa7-Oct-07 6:02
Guffa7-Oct-07 6:02 
GeneralRe: Local DB not updated Pin
Paul Conrad7-Oct-07 6:13
professionalPaul Conrad7-Oct-07 6:13 
QuestionZooming an Image In VB.NET Pin
Aamir Mustafa6-Oct-07 17:29
Aamir Mustafa6-Oct-07 17:29 
AnswerRe: Zooming an Image In VB.NET Pin
Christian Graus6-Oct-07 23:42
protectorChristian Graus6-Oct-07 23:42 
QuestionZooming an Image In VB.NET Pin
Aamir Mustafa6-Oct-07 17:28
Aamir Mustafa6-Oct-07 17:28 
AnswerRe: Zooming an Image In VB.NET Pin
Paul Conrad28-Oct-07 11:58
professionalPaul Conrad28-Oct-07 11:58 
QuestionHow to..... Pin
newbie@vb6-Oct-07 15:57
newbie@vb6-Oct-07 15:57 
AnswerRe: How to..... Pin
Christian Graus6-Oct-07 16:12
protectorChristian Graus6-Oct-07 16:12 
AnswerRe: How to..... Pin
Paul Conrad7-Oct-07 5:50
professionalPaul Conrad7-Oct-07 5:50 
AnswerRe: How to..... Pin
Vimalsoft(Pty) Ltd8-Oct-07 21:15
professionalVimalsoft(Pty) Ltd8-Oct-07 21:15 
QuestionHow to collect the information which hardware is connected to my pc using .Net technology.. Pin
Sasmi6-Oct-07 9:10
Sasmi6-Oct-07 9:10 
AnswerRe: How to collect the information which hardware is connected to my pc using .Net technology.. Pin
Dave Kreskowiak7-Oct-07 3:05
mveDave Kreskowiak7-Oct-07 3:05 
GeneralRe: How to collect the information which hardware is connected to my pc using .Net technology.. Pin
Sasmi7-Oct-07 4:31
Sasmi7-Oct-07 4:31 

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.