Thank you for that "little" clue. I have not been aware of the bitconverter class and that seems to be exactly what I needed. The process of converting all entities to BYTE and then xor'ing seems to yield the same results as executing the C program.
Again, thanks for your help.
Thanks for the reply. This still has the issue of 'xor not defined for types Integer and char' for (passnum Xor pwstr(j))
This is where I get confused concerning the bit configuration if I convert the int to a char or the char to an int.
I need to convert the following C code to VB such that the resulting bit configurations are identical. Note that I cannot alter the variable types.
Being relatively new to VB I am a little confused concerning XOR'in VB ints with chars. Any advice is greatly appreciated.