Che Posted November 1, 2015 Report Posted November 1, 2015 (edited) Vreau sa creez un proiect in Visual Studio C# decompiland un executabil deja creat si am o problema cu o anume linie de cod care da eroare oricum as scrie-o.Decompilat cu .Net Reflector, linia de cod arata cam asa:dictionary.Add(string.Format("Other straght draw - {0} outs", ((Pioeval.StraightDrawType) 4) * type), type != Pioeval.StraightDrawType.None);Eroarea e aici:(object) checked (4 * unchecked ((int) straightDrawType)))Si zice: The name 'straightDrawType' does not exist in the current context.Daca pun:Pioeval.StraightDrawTypeImi zice: 'Pioeval.StraightDrawType' is a type, which is not valid in the given context.Decompilat cu dotPeek, linia de cod arata asa:dictionary.Add(string.Format("Other straght draw - {0} outs", (object) checked (4 * unchecked ((int) straightDrawType))), straightDrawType != Pioeval.StraightDrawType.None);la asta eroarea e ca cica '*' cannot be applied to type of operands like 'Pioeval.StraightDrawType'.Si aici avem fragmentul de cod la care face referire:Public Enum StraightDrawType ' Fields EightOutStraightDraw = 2 FourOutStraightDraw = 1 None = 0End EnumCum se scrie corect linia de cod ?Multumesc mult !LE:Am uitat, este si o variabila locala denumita 'type' in cadrul acelei functii: Pioeval.StraightDrawType type = Pioeval.smethod_27(ulong_0, ulong_1); Edited November 1, 2015 by Che Quote
Byte-ul Posted November 2, 2015 Report Posted November 2, 2015 Pune aici programul sa vad exact ce si cum. Quote
shamyran Posted November 9, 2015 Report Posted November 9, 2015 Pune aici tot programul sa vad despre ce este vorba si o sa te ajut. Quote
Che Posted November 10, 2015 Author Report Posted November 10, 2015 Scuze, nu pot pune programul. E... periculos si pentru mine, si pentru portofel. Quote