471,119 Members | 1,205 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,119 software developers and data experts.

Bit Shift Operators

I've tried using the bit-shift operators (>> and <<) in
VB.Net, but the compiler objects. Does anybody know
why? Has anybody used them?

Thanks in advance
Jul 21 '05 #1
5 5016
Hi,
I've used them without any problems. What says the compiler when he objects
it?
Do you use the right datatypes?

"Simon" <an*******@discussions.microsoft.com> schrieb im Newsbeitrag
news:08****************************@phx.gbl...
I've tried using the bit-shift operators (>> and <<) in
VB.Net, but the compiler objects. Does anybody know
why? Has anybody used them?

Thanks in advance

Jul 21 '05 #2
There isn't one.
Just write you own (divide or multiply by 2)

"Simon" <an*******@discussions.microsoft.com> wrote in message
news:08****************************@phx.gbl...
I've tried using the bit-shift operators (>> and <<) in
VB.Net, but the compiler objects. Does anybody know
why? Has anybody used them?

Thanks in advance

Jul 21 '05 #3
Hi,

Thanks for replying.

The development environment underlines the >> in blue and
says "Expression expected". It is version 7 of the
development environment and Visual Basic.Net.

-----Original Message-----
Hi,
I've used them without any problems. What says the compiler when he objectsit?
Do you use the right datatypes?

"Simon" <an*******@discussions.microsoft.com> schrieb im Newsbeitragnews:08****************************@phx.gbl...
I've tried using the bit-shift operators (>> and <<) in
VB.Net, but the compiler objects. Does anybody know
why? Has anybody used them?

Thanks in advance

.

Jul 21 '05 #4
Are you using Visual Studio 2003 and the .net Framework version 1.1?

VS2002 and .net 1.0 don't support bit shifting in VB.net.

Hope this helps,

Trev.
"Simon" <an*******@discussions.microsoft.com> wrote in message
news:08****************************@phx.gbl...
I've tried using the bit-shift operators (>> and <<) in
VB.Net, but the compiler objects. Does anybody know
why? Has anybody used them?

Thanks in advance

Jul 21 '05 #5
On Fri, 5 Dec 2003 12:54:27 +0200, Ayende Rahien wrote:
There isn't one.


VB.Net 2003 supports the << and >> bit shifting operators. VB.Net 2002
does NOT support them.

--
Chris

To send me an E-mail, remove the underscores and lunchmeat from my E-Mail
address.
Jul 21 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by DeepaK K C | last post: by
2 posts views Thread by joshc | last post: by
43 posts views Thread by Mehta Shailendrakumar | last post: by
5 posts views Thread by ritesh.noronha | last post: by
3 posts views Thread by Simon Johnson | last post: by
8 posts views Thread by Chua Wen Ching | last post: by
7 posts views Thread by Marty McFly | last post: by
9 posts views Thread by deepak | last post: by
16 posts views Thread by Santosh Nayak | last post: by
4 posts views Thread by Felix Kater | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.