Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Visual Basic .NET (http://www.programmingforums.org/forum19.html)
-   -   Help me! How can I get an Integer in memory (http://www.programmingforums.org/showthread.php?t=12148)

FlytotheSky Dec 10th, 2006 12:25 AM

Help me! How can I get an Integer in memory
 
Good afternoon everybody, I'm a new member. :) Please help me!
How can I get an Integer value in memory?:confused: I want to access memory. Thank so much and have a good day:)

lectricpharaoh Dec 10th, 2006 3:52 AM

Quote:

Originally Posted by FlytotheSky (Post 120956)
Good afternoon everybody, I'm a new member. :) Please help me!
How can I get an Integer value in memory?:confused: 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.

DaWei Dec 10th, 2006 5:12 AM

The OP's post isn't entirely clear, but I don't think he's referring to esoteric memory access. I think he's unaware that a variable declaration and use of the variable is an in-memory phenomenon. I could be wrong.

To the OP: please read the forum's rules/faq, and a "How to Post a Question" thread. It's the polite, mature thing to do.

bl00dninja Dec 10th, 2006 6:55 PM

how can i get an integer value in memory?

you need to understand the semantics of your language more, or maybe understand the semantics of english more. either way, your question doesnt make sense.

basically, you need to work some more just to ask the question.

example of bullshit english...not too far from you
why if to for the programming machine is busy, we how at here stand.

yeah...people in america don't know what the f**k you're talking about.

if you're born and raised here, congratulate our education system for you sounding like one who is mentally retarded. (the U.S. sucks on that point).

if not, then yeah our basic education system sucks...to an embarassing level.

FlytotheSky Dec 11th, 2006 1:10 AM

So sorry
 
Quote:

Originally Posted by bl00dninja (Post 121003)
how can i get an integer value in memory?

you need to understand the semantics of your language more, or maybe understand the semantics of english more. either way, your question doesnt make sense.

basically, you need to work some more just to ask the question.

example of bullshit english...not too far from you
why if to for the programming machine is busy, we how at here stand.

yeah...people in america don't know what the f**k you're talking about.

if you're born and raised here, congratulate our education system for you sounding like one who is mentally retarded. (the U.S. sucks on that point).

if not, then yeah our basic education system sucks...to an embarassing level.

First! I'm very sorry because my question is not clearly.:)
Second, I'm not good at English yet. But, when I read what you said,I just wonder How "people in America" answers a question discourteously. And you do not need to say "fuck".

I'm here in this forum just because I want to improve my programming skill and English too. I think the world is so large but I'm too tiny...So if you can teach me good things, it's my pleasure.

Then I try to clear my question:
I want to get a value of an active application from RAM.Supposing, a game is running and main character's HP is 9345. How can I get this value in memory?

Thanks and waiting for your reply.
Best regards,
FlytotheSky.


All times are GMT -5. The time now is 10:27 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC