PC Review


Reply
Thread Tools Rate Thread

Bit Shift Operators

 
 
Simon
Guest
Posts: n/a
 
      5th Dec 2003
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
 
Reply With Quote
 
 
 
 
Erik Vegting
Guest
Posts: n/a
 
      5th Dec 2003
Hi,
I've used them without any problems. What says the compiler when he objects
it?
Do you use the right datatypes?

"Simon" <(E-Mail Removed)> schrieb im Newsbeitrag
news:087c01c3bb1a$7a8360c0$(E-Mail Removed)...
> 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



 
Reply With Quote
 
Ayende Rahien
Guest
Posts: n/a
 
      5th Dec 2003
There isn't one.
Just write you own (divide or multiply by 2)

"Simon" <(E-Mail Removed)> wrote in message
news:087c01c3bb1a$7a8360c0$(E-Mail Removed)...
> 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



 
Reply With Quote
 
Guest
Posts: n/a
 
      5th Dec 2003
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 objects
>it?
>Do you use the right datatypes?
>
>"Simon" <(E-Mail Removed)> schrieb im

Newsbeitrag
>news:087c01c3bb1a$7a8360c0$(E-Mail Removed)...
>> 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

>
>
>.
>

 
Reply With Quote
 
Codemonkey
Guest
Posts: n/a
 
      5th Dec 2003
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" <(E-Mail Removed)> wrote in message
news:087c01c3bb1a$7a8360c0$(E-Mail Removed)...
> 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



 
Reply With Quote
 
Chris Dunaway
Guest
Posts: n/a
 
      5th Dec 2003
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.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Other keys besides CTRL+SHIFT, ALT+SHIFT to switch input languages? Yevgeniy Makarov Windows XP Help 2 5th Apr 2006 04:10 AM
Keys besides Ctrl+Shift, Alt+Shift for switching imput languages? Yevgeniy Makarov Windows XP General 0 4th Apr 2006 02:24 AM
account operators reseting passwords for other account operators? Bob Gilbreath Microsoft Windows 2000 Active Directory 3 4th Feb 2004 09:32 AM
Re: Shift Operators Andre Microsoft C# .NET 0 31st Jul 2003 05:56 PM
Re: Shift Operators Jon Skeet Microsoft C# .NET 0 31st Jul 2003 03:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:10 AM.