Posted: Thu Jun 12, 2014 8:26 am Post subject: C# Displaying an array on Form
Hello everyone.
I am working on some tool similar to cheat engine(very basic for personal use).
1. maybe its a newbie question but i don't know the best way to Display
the result of a scan onto the Form or any type of window.
2. even if i do get to display them on the Form. how will I display IntPtr
values as Hex(on the Form)?? _________________
Matze500: thanks but what if the result is like a million addresses at first - how will i display all of them on the form??
atom0s: thank you but last time i tried using IntPtr's ToString it was not actual hex value.. but an integer or something..
another thing i just tested the program to scan for a value.
I used a List<IntPtr> to save the scan result which is probably not the best way to do it(takes alot of memory i guess)..
I tried scanning once and after a certain time an exception(indexOutOfBounds) was thrown by the result List so im guessing you can't add millions of objects on a List haha..
any ideas?? am kinda new to programming an especially cSharp so sorry in advance :p _________________
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
Posted: Fri Jun 13, 2014 1:38 pm Post subject:
IntPtr's ToString will default to an integer if you do not give it any formatting like I did in the example above with the "X" and "X8". Those format the string into hexadecimal.
As for your exception, set Visual Studio to break on all exceptions so you can see where it is occurring at. Otherwise there is not much anyone can do to help you without seeing the source code. _________________
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum