Valhalla Legends Archive

Programming => General Programming => Visual Basic Programming => Topic started by: ChR0NiC on April 08, 2004, 05:26 PM

Title: C++ to VB Conversion
Post by: ChR0NiC on April 08, 2004, 05:26 PM
Does anyone know the VB equivalent to C++'s One's Complement Operator: ~
Title: Re:C++ to VB Conversion
Post by: Noodlez on April 08, 2004, 06:21 PM
IIRC, it's Not
Title: Re:C++ to VB Conversion
Post by: ChR0NiC on April 08, 2004, 06:33 PM
Quote from: Noodlez on April 08, 2004, 06:21 PM
IIRC, it's Not

Um....what do you mean it's not?

One's Complement Operator (http://msdn.microsoft.com/library/en-us/vclang/html/_pluslang_one.92.s_complement_operator.asp)

Edit: My question is, how would I recreate the "~" in VB, in order to use it the same way as you would in C++.
Title: Re:C++ to VB Conversion
Post by: Adron on April 08, 2004, 06:42 PM
Quote from: ChR0NiC on April 08, 2004, 06:33 PM
Quote from: Noodlez on April 08, 2004, 06:21 PM
IIRC, it's Not

Um....what do you mean it's not?

One's Complement Operator (http://msdn.microsoft.com/library/en-us/vclang/html/_pluslang_one.92.s_complement_operator.asp)

Edit: My question is, how would I recreate the "~" in VB, in order to use it the same way as you would in C++.

It seems to be.
Title: Re:C++ to VB Conversion
Post by: ChR0NiC on April 08, 2004, 06:43 PM
Quote from: Adron on April 08, 2004, 06:42 PM
It seems to be.

Why are you guys confusing me in such a way, so it is possible or it is not possible?
Title: Re:C++ to VB Conversion
Post by: Noodlez on April 08, 2004, 07:08 PM
No ones confusing you. I gave you a direct an correct answer, Adron simply confirmed it. Do some research.
Title: Re:C++ to VB Conversion
Post by: ChR0NiC on April 08, 2004, 07:15 PM
Quote from: Noodlez on April 08, 2004, 07:08 PM
No ones confusing you. I gave you a direct an correct answer, Adron simply confirmed it. Do some research.

A yes or no will do.
Title: Re:C++ to VB Conversion
Post by: K on April 08, 2004, 09:13 PM
I believe you can also achieve the same effect by XORing with all ones (binary).