Click here to Skip to main content
15,910,121 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Shared members raising events Pin
cnurse6-Dec-03 22:47
cnurse6-Dec-03 22:47 
GeneralBit shifting in VB Pin
cnurse5-Dec-03 18:59
cnurse5-Dec-03 18:59 
GeneralRe: Bit shifting in VB Pin
Dave Kreskowiak6-Dec-03 4:58
mveDave Kreskowiak6-Dec-03 4:58 
GeneralRe: Bit shifting in VB Pin
cnurse6-Dec-03 22:54
cnurse6-Dec-03 22:54 
GeneralRe: Bit shifting in VB Pin
Dave Kreskowiak7-Dec-03 5:39
mveDave Kreskowiak7-Dec-03 5:39 
GeneralRe: Bit shifting in VB Pin
cnurse7-Dec-03 13:45
cnurse7-Dec-03 13:45 
GeneralRe: Bit shifting in VB Pin
Dave Kreskowiak7-Dec-03 14:40
mveDave Kreskowiak7-Dec-03 14:40 
GeneralRe: Bit shifting in VB Pin
Ian Darling7-Dec-03 2:43
Ian Darling7-Dec-03 2:43 
The previous poster is correct - the shifting operators are 2003 only.

However, if you have an integer value you can mimic some of the shifting by dividing or multiplying by two, although this is far from perfect and may cause overflow errors and suchlike. You might also find that you can bit mask, and created the shifted up or down value by adding or subtracting the relevant powers of 2 to an initial zero value.

You could also create a lookup table of shifts if you don't mind the memory overhead, but this would be fast and simple (note this is only really practical for small bitfields, of size 8 bits or there abouts (an array 256 Bytes each way) - 32 bits woud be right out due to needing 4 gig of memory for each Big Grin | :-D )

Or upgrade your project to 2003 Smile | :)

--
Ian Darling
"The moral of the story is that with a contrived example, you can prove anything." - Joel Spolsky
GeneralRe: Bit shifting in VB Pin
cnurse7-Dec-03 4:22
cnurse7-Dec-03 4:22 
GeneralVB.Net WS_EX_LAYERED Forms Pin
andrew|5-Dec-03 4:32
andrew|5-Dec-03 4:32 
GeneralRe: VB.Net WS_EX_LAYERED Forms Pin
cnurse5-Dec-03 18:56
cnurse5-Dec-03 18:56 
GeneralRe: VB.Net WS_EX_LAYERED Forms Pin
andrew|5-Dec-03 21:24
andrew|5-Dec-03 21:24 
GeneralRe: VB.Net WS_EX_LAYERED Forms Pin
Dave Kreskowiak6-Dec-03 4:57
mveDave Kreskowiak6-Dec-03 4:57 
GeneralRe: VB.Net WS_EX_LAYERED Forms Pin
andrew|6-Dec-03 5:44
andrew|6-Dec-03 5:44 
GeneralRe: VB.Net WS_EX_LAYERED Forms Pin
cnurse6-Dec-03 22:52
cnurse6-Dec-03 22:52 
GeneralMSScriptControl and VB.Net Control Events Pin
andrew|5-Dec-03 4:29
andrew|5-Dec-03 4:29 
QuestionHow can I integrated a combobox ? Pin
jlizardo5-Dec-03 3:29
jlizardo5-Dec-03 3:29 
QuestionHow to Stop a Big Loop Pin
rrocha25-Dec-03 0:06
rrocha25-Dec-03 0:06 
AnswerRe: How to Stop a Big Loop Pin
Ian Darling5-Dec-03 0:19
Ian Darling5-Dec-03 0:19 
GeneralMy Computer Shell Extension Pin
MusclePup4-Dec-03 22:58
MusclePup4-Dec-03 22:58 
GeneralVisual Studio Freezing. Pin
cnurse4-Dec-03 21:40
cnurse4-Dec-03 21:40 
GeneralHelp me to draw Icon in CheckedListBox Pin
VitaminY4-Dec-03 16:38
sussVitaminY4-Dec-03 16:38 
GeneralCasting variables in VB.NET Pin
Jim Taylor4-Dec-03 12:16
Jim Taylor4-Dec-03 12:16 
GeneralRe: Casting variables in VB.NET Pin
Nick Seng4-Dec-03 14:48
Nick Seng4-Dec-03 14:48 
GeneralRe: Casting variables in VB.NET Pin
Dave Kreskowiak4-Dec-03 18:58
mveDave Kreskowiak4-Dec-03 18:58 

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.