Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 10th, 2006, 12:25 AM   #1
FlytotheSky
Newbie
 
Join Date: Dec 2006
Posts: 4
Rep Power: 0 FlytotheSky is on a distinguished road
Send a message via Yahoo to FlytotheSky
Question 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? I want to access memory. Thank so much and have a good day
FlytotheSky is offline   Reply With Quote
Old Dec 10th, 2006, 3:52 AM   #2
lectricpharaoh
Caffeinated Neural Net
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 1,010
Rep Power: 5 lectricpharaoh will become famous soon enough
Quote:
Originally Posted by FlytotheSky View Post
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.
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
lectricpharaoh is offline   Reply With Quote
Old Dec 10th, 2006, 5:12 AM   #3
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Dec 10th, 2006, 6:55 PM   #4
bl00dninja
Programming Guru
 
bl00dninja's Avatar
 
Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 5 bl00dninja is on a distinguished road
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.
__________________
i put on my robe and wizard hat...

Have you ever heard of Plato, Aristotle, Socrates?...Morons.
bl00dninja is offline   Reply With Quote
Old Dec 11th, 2006, 1:10 AM   #5
FlytotheSky
Newbie
 
Join Date: Dec 2006
Posts: 4
Rep Power: 0 FlytotheSky is on a distinguished road
Send a message via Yahoo to FlytotheSky
So sorry

Quote:
Originally Posted by bl00dninja View Post
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.
FlytotheSky is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Heap vs. Stack memory Eric the Red C++ 11 Oct 24th, 2006 6:18 PM
help with timers for final class project Rath72 Visual Basic 8 Jun 14th, 2006 6:55 AM
Pointers in C (Part I) Stack Overflow C 4 Apr 28th, 2005 7:03 PM
Linking dll failure (file not found) amrfathy_egy Visual Basic 8 Feb 3rd, 2005 3:13 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:39 PM.

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