Click here to Skip to main content
15,905,028 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionConverting C# code to VB.net Pin
dix21-Aug-08 0:55
dix21-Aug-08 0:55 
AnswerRe: Converting C# code to VB.net PinPopular
Christian Graus21-Aug-08 1:16
protectorChristian Graus21-Aug-08 1:16 
GeneralRe: Converting C# code to VB.net Pin
Paul Conrad21-Aug-08 18:43
professionalPaul Conrad21-Aug-08 18:43 
AnswerCP IGNORE Pin
leckey21-Aug-08 3:56
leckey21-Aug-08 3:56 
QuestionBig Endian format and IP Address Pin
ddspliting20-Aug-08 23:45
ddspliting20-Aug-08 23:45 
AnswerRe: Big Endian format and IP Address Pin
Christian Graus21-Aug-08 0:10
protectorChristian Graus21-Aug-08 0:10 
GeneralRe: Big Endian format and IP Address Pin
ddspliting21-Aug-08 0:57
ddspliting21-Aug-08 0:57 
GeneralRe: Big Endian format and IP Address Pin
Christian Graus21-Aug-08 1:26
protectorChristian Graus21-Aug-08 1:26 
In C#, you'd do do 123 << 8 to move the byte across by 8 bits. I don't know how to do that in VB, but that's the general idea. You could just multiple by 2 to the power of 8, 2 to the power of 16 and 2 to the power of 24, if you can't find the shift operator.

Oops - this is the C# forum.

123 << 24 + 212 << 16 + 4 << 8 + 3 would move them so they were in order, left to right. I'm sure that's not big endian, so get the order of digits right and that should work.

http://www.codeproject.com/KB/cs/leftrightshift.aspx[^] explains how it all works. There's at least one other article that has a helper class you may want to check out.

Christian Graus

No longer a Microsoft MVP, but still happy to answer your questions.

AnswerRe: Big Endian format and IP Address Pin
Alan N21-Aug-08 1:59
Alan N21-Aug-08 1:59 
Questionsql statement ignored by ozeki sms server. Pin
peanutong20-Aug-08 23:34
peanutong20-Aug-08 23:34 
AnswerRe: sql statement ignored Pin
Christian Graus21-Aug-08 0:07
protectorChristian Graus21-Aug-08 0:07 
GeneralRe: sql statement ignored [modified] Pin
peanutong21-Aug-08 0:39
peanutong21-Aug-08 0:39 
GeneralRe: sql statement ignored Pin
Christian Graus21-Aug-08 0:49
protectorChristian Graus21-Aug-08 0:49 
GeneralRe: sql statement ignored Pin
peanutong21-Aug-08 0:54
peanutong21-Aug-08 0:54 
GeneralRe: sql statement ignored Pin
Christian Graus21-Aug-08 1:17
protectorChristian Graus21-Aug-08 1:17 
GeneralRe: sql statement ignored Pin
peanutong21-Aug-08 1:19
peanutong21-Aug-08 1:19 
GeneralRe: sql statement ignored Pin
Christian Graus21-Aug-08 1:31
protectorChristian Graus21-Aug-08 1:31 
QuestionNeed Help!! DataGridView can't save Pin
Ultrajet20-Aug-08 23:29
Ultrajet20-Aug-08 23:29 
Questionsql update sum Pin
maytel mynt20-Aug-08 22:04
maytel mynt20-Aug-08 22:04 
AnswerRe: sql update sum Pin
Christian Graus20-Aug-08 22:26
protectorChristian Graus20-Aug-08 22:26 
AnswerRe: sql update sum Pin
astanton197821-Aug-08 9:48
astanton197821-Aug-08 9:48 
GeneralRe: sql update sum Pin
maytel mynt21-Aug-08 15:13
maytel mynt21-Aug-08 15:13 
QuestionDLL Pin
karthigachawla20-Aug-08 18:55
karthigachawla20-Aug-08 18:55 
AnswerRe: DLL Pin
Mycroft Holmes20-Aug-08 19:10
professionalMycroft Holmes20-Aug-08 19:10 
GeneralRe: DLL Pin
Paul Conrad21-Aug-08 18:44
professionalPaul Conrad21-Aug-08 18:44 

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.