Solved

How to XOR with Hexadecimal value in .NET?

Posted on 2006-06-28
1
179 Views
Last Modified: 2006-11-18
I have this code in C#:

int iAvoid = 0xFFFF ^ (int) _stxConfigPort;

I tried to do

dim iavoid as integer= 0xffff xor ctype(_stxConfigPort, integer)

but it doesn't work. What is the right way then?

Thanks
0
Comment
Question by:Reeds
1 Comment
 
LVL 37

Accepted Solution

by:
Harisha M G earned 500 total points
ID: 17003947
Hi,

dim iavoid as integer= &Hffff xor ctype(_stxConfigPort, integer)


---
Harish
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
start a process from a service 3 36
VB.NET 2008 Publish Error 2 43
VB.net DataGridView show bit field as Text column not CheckBox column 5 26
Get sourcecode path 14 46
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question