Solved

How to XOR with Hexadecimal value in .NET?

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
vb.net checkbox 7 47
Error "String or binary data would be truncated" in an update on a datatable 7 38
Error handling in asp.net site 5 25
No Data for DropDown List 2 24
Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

776 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