Thread to be deleted!
Printable View
Thread to be deleted!
Your problem might be solved simply by placing Option Strict On at the top of your code file. Why do I say this? Because of your bit masking here:
This is not doing what you think it is doing. The ampersand in VB.NET is a concatenation operator most often used for the String type, the compiler is actually converting implicitly those values to strings so that it can concat them. The equalivent of the C-style ampersand for bitmasking in VB.NET is the keyword AndCode:(Chunks(1) & &HFF)
So you should fix that and see what you get.Code:(Chunks(1) And &HFF)
You should be setting Option Strict On to the default of all your projects and you can do this by navigating to Tools > Options > Projects and Solutions
Thanks for the reply, I've now changed that and turned option explicit on, I still get an incorrect outcome
Option Strict OnQuote:
option explicit on
Oh and incase it's needed, after changing the bit masking like ForumAccount said, This is the new outcome from VB.NET
Quote:
17 A4 45 87 8A 73 85 BC 50 C4 92 70 78 4E 46 D8 32 D1 27 E4 87 70 06 A6 D9 20 F3 87 68 91 14 11 D9 20 F3 87 68 91 14 11 D9 20 F3 87 68 91 14 11 D9 20 F3 87 68 91 14 11 15 42 40 B2 98 37 0F 91 82 CC FB 42 11 1A 71 E5
Why is the main post edited?