Click here to Skip to main content
15,898,035 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionFunction doesn't make sense [SOLVED][modified] Pin
Richard Jones12-Jun-07 3:05
Richard Jones12-Jun-07 3:05 
AnswerRe: Function doesn't make sense Pin
Thomas Stockwell12-Jun-07 3:24
professionalThomas Stockwell12-Jun-07 3:24 
GeneralRe: Function doesn't make sense Pin
Richard Jones12-Jun-07 3:47
Richard Jones12-Jun-07 3:47 
GeneralRe: Function doesn't make sense Pin
Dave Kreskowiak12-Jun-07 12:50
mveDave Kreskowiak12-Jun-07 12:50 
GeneralRe: Function doesn't make sense Pin
Richard Jones13-Jun-07 1:38
Richard Jones13-Jun-07 1:38 
GeneralRe: Function doesn't make sense Pin
Dave Kreskowiak13-Jun-07 3:09
mveDave Kreskowiak13-Jun-07 3:09 
GeneralRe: Function doesn't make sense Pin
Richard Jones13-Jun-07 3:35
Richard Jones13-Jun-07 3:35 
GeneralRe: Function doesn't make sense Pin
Dave Kreskowiak13-Jun-07 7:02
mveDave Kreskowiak13-Jun-07 7:02 
Not is a useful sense. Negative Integers don't have a defined conversion to an Unsigned Integer. You can use the Convert class and it's ToUInt32 method, but it will throw an Overflow exception if the Int32 value is less than 0.
' This will bomb out...
Dim myUInt As UInt32 = Convert.ToUInt32(-400)

It can, however be done using two conversions and the BitConverter[^] class.
Dim bytes As Byte() = BitConverter.GetBytes(someInt32)
Dim myUInt32 As UInt32 = BitConverter.ToUInt32(bytes, 0)

But, like I said, this conversion doesn't have any defined meaning.


A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


GeneralRe: Function doesn't make sense Pin
Richard Jones13-Jun-07 7:36
Richard Jones13-Jun-07 7:36 
GeneralRe: Function doesn't make sense Pin
Steven J Jowett12-Jun-07 3:56
Steven J Jowett12-Jun-07 3:56 
QuestionCan't DeSerialize, but can Serialize with unknown object type :( Pin
twista12-Jun-07 3:00
twista12-Jun-07 3:00 
Questionwindows schedular is not working Pin
srinivassam12-Jun-07 2:19
srinivassam12-Jun-07 2:19 
AnswerFOUR instances of a question you asked on June 4th Pin
leckey12-Jun-07 4:03
leckey12-Jun-07 4:03 
GeneralRe: FOUR instances of a question you asked on June 4th Pin
Colin Angus Mackay12-Jun-07 4:08
Colin Angus Mackay12-Jun-07 4:08 
GeneralRe: FOUR instances of a question you asked on June 4th Pin
leckey12-Jun-07 4:23
leckey12-Jun-07 4:23 
Questionwindows based schedular not working Pin
srinivassam12-Jun-07 2:15
srinivassam12-Jun-07 2:15 
Questionwindows based schedular not working Pin
srinivassam12-Jun-07 2:15
srinivassam12-Jun-07 2:15 
AnswerRe: windows based schedular not working Pin
Tarakeshwar Reddy12-Jun-07 2:54
professionalTarakeshwar Reddy12-Jun-07 2:54 
QuestionPath Pin
Brendan Vogt12-Jun-07 1:18
Brendan Vogt12-Jun-07 1:18 
AnswerRe: Path Pin
PandemoniumPasha12-Jun-07 1:42
PandemoniumPasha12-Jun-07 1:42 
QuestionRe: Path Pin
Brendan Vogt12-Jun-07 1:58
Brendan Vogt12-Jun-07 1:58 
AnswerRe: Path Pin
Steven J Jowett12-Jun-07 2:01
Steven J Jowett12-Jun-07 2:01 
QuestionCombobox data connetivity [modified] Pin
Aman.Jen12-Jun-07 0:35
Aman.Jen12-Jun-07 0:35 
AnswerRe: Combobox data connetivity Pin
Christian Graus12-Jun-07 2:04
protectorChristian Graus12-Jun-07 2:04 
Questioncreate chart by vb.net Pin
xuyuan11-Jun-07 23:26
xuyuan11-Jun-07 23:26 

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.