|
-
Feb 13th, 2004, 02:38 AM
#1
the >> operator?
Just wondering what >> means?
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Feb 13th, 2004, 02:57 AM
#2
Hi MrPolite.
This is from MSDN.
Right shifts the bits of an expression, maintaining sign.
result = expression1 >> expression2
So "A = B >> 3" would shift all bits in B 3 places to the right and put the result in A.
But apparently this is not available in VB.
I wish I could think of something witty to put in my sig...
...Currently using VS2013...
-
Feb 13th, 2004, 03:08 AM
#3
Originally posted by pax
Hi MrPolite.
This is from MSDN.
So "A = B >> 3" would shift all bits in B 3 places to the right and put the result in A.
But apparently this is not available in VB.
MSDN is wrong then cuz it works funny hehe
I guess I have to learn assembly to get a better understanding of all these byte shifts blah blah, even though they may be simple
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Feb 13th, 2004, 03:14 AM
#4
It works in VB ?
How did you do that?
I have just tried this :
VB Code:
Dim A As Integer
A = &H10
MsgBox(Hex(A))
A = A >> 3
MsgBox(Hex(A))
And I get a compile error on the >>
I wish I could think of something witty to put in my sig...
...Currently using VS2013...
-
Feb 13th, 2004, 09:12 AM
#5
Its now available in VS2003 but not in VS2002.
-
Feb 13th, 2004, 09:13 AM
#6
Ah, that explains it all...
Thank's for the info, Grimfort
I wish I could think of something witty to put in my sig...
...Currently using VS2013...
-
Feb 13th, 2004, 03:06 PM
#7
heh interesting. Is there anywhere which lists all the LANGUAGE changes in VS.NET 2003?
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|