ok their are 2 lines of code i'm working with that i'm trying to figure out here,i'm using Microsoft.VisualBasic; &Microsoft.VisualBasic.Compatability in the C#....
VB Code:
B = Strings.InStr(1, A[0], ControlChars.NullChar); B = Strings.InStr(1, A[1], ControlChars.NullChar);
Those are the 2 Strings i'm getting errors with i will post the Errors after this Section of Code,So you can see the Entire Block that those lines Go into::
VB Code:
public bool GetStrings(ref string ClientID, ref string ClientPass, ref string Seed, ref string Str1, ref string Str2, ref int mode) { bool getStringsReturn = false; string[] A = new string[0]; int B; try { A[0] = new string(ControlChars.NullChar, 100); A[1] = new string(ControlChars.NullChar, 100); getStringsReturn = SM90A_Encoded_Encrypt(ClientID, ClientPass, Seed, A[0], A[1], ref mode); B = Strings.InStr(1, A[0], ControlChars.NullChar); Str1 = Strings.Left(A[0], B - 1); B = Strings.InStr(1, A[1], ControlChars.NullChar); Str2 = Strings.Left(A[1], B - 1); return getStringsReturn; } catch { goto err_Renamed; } err_Renamed: getStringsReturn = false; return getStringsReturn; }
Here are the Errors for the 2 Lines of Code at the Top:
Error 1 The best overloaded method match for 'Microsoft.VisualBasic.Strings.InStr(string, string, Microsoft.VisualBasic.CompareMethod)' has some invalid arguments
Thxs in Advance Rattlerr![]()





Reply With Quote