Hi all.
I have written a C++ code to modify a string, the code is:
Can someone help me convert this to VB:Code:int Len = (nString.length()); char *szString = (char*)(nString.c_str()); // Convert to C string for (int i = 0; i < Len; i++) { *(szString+i) = (*(szString+i) + 123); //XOR }
I have this so far, but it is not working:
Thanks bunch!Code:Dim i As Integer Dim chrArray() As Char chrArray = EncryptIn.ToCharArray For intCounter = 0 To chrArray.Length - 1 chrArray(i) = chrArray(i + 123) Next




Reply With Quote