Solved

How to XOR with Hexadecimal value in .NET?

Posted on 2006-06-28
1
176 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
This video discusses moving either the default database or any database to a new volume.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

762 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now