Quote:
Originally Posted by FlytotheSky
Good afternoon everybody, I'm a new member.  Please help me!
How can I get an Integer value in memory?  I want to access memory. Thank so much and have a good day 
|
I don't think you can do this in VB .NET. In C#, you can do it by using the unsafe keyword, and pointers, but there's probably a better (read: safer, more reliable) way. Why exactly do you need to do this? If you're wanting to peek into another process's memory, that's generally a no-no, and the OS will have implemented measures to restrict that. If you're wanting to peek at your own process's memory, what's wrong with just using the variables you've declared? Lastly, if you are trying to access memory-mapped hardware (video memory, for example), you will most probably run afoul of hardware contention issues. Try to see if there is some kind of API or system call to do what you need. In the case of video memory access, you could use something like managed DirectX (there are a lot of tutorials out there for it).
If you're trying to do something different, and really need direct access to absolute memory locations, you'll probably want to (re)write your code (or at least the relevant modules) in another language, like C, C++, or assembly.