Click here to Skip to main content
15,889,732 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
X and Y are two integer variables in Vb6; I want to convert (Y * &H10000) Or (X And &HFFFF&) to C# code. How to do this? Thanks.
Posted
Updated 18-Sep-12 4:35am
v2
Comments
[no name] 18-Sep-12 10:36am    
(Y * 0x10000) | (X & 0xffffL)
Andrewpeter 18-Sep-12 11:00am    
Thanks Wes, i am going to test it.
ZurdoDev 18-Sep-12 11:06am    
Post as the solution. The OP said that's all they needed.
Andrewpeter 18-Sep-12 11:07am    
Yes, i think so.
[no name] 18-Sep-12 11:08am    
Done. Thanks

1 solution

Posted as a solution to remove from unanswered list
(Y * 0x10000) | (X & 0xffffL)
 
Share this answer
 
Comments
Andrewpeter 18-Sep-12 11:14am    
My vote is 5 for your answer and accept it is a solution!
[no name] 18-Sep-12 11:15am    
Thanks
Sergey Alexandrovich Kryukov 18-Sep-12 18:11pm    
Clear. A 5.
--SA
[no name] 18-Sep-12 20:55pm    
Thanks Sergey

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900