![]() |
|
#1
|
|||
|
|||
Accessing a specific memory addressI am attempting to read and write to a specific memory location. My first attempt was as follows:
CPP / C++ / C Code:
but every time I run the code to see what is in the memory location I get an access violation exception. I though of using MK_FP, but I do not know what the segment address of this memory address is or how to figure it out. Basically the above code segment is what I want to do, except I also want to write to the specific location, but it does not work. All sugestions are welcomed. Madtown54 Last edited by LuciWiz : 16-Mar-2005 at 10:19.
Reason: Please insert your C code between [c] & [/c] tags
|
|
#2
|
|||
|
|||
|
Quote:
"Modern" operating systems (any Windows > 98/ME, Linux, BSD, etc.) will not allow user programs to have direct access to hardware resources (memory, i/o devices, etc.) Regards, Dave |
|
#3
|
|||
|
|||
|
Thanks for your response Dave. How would you suggest I best accomplish what I am trying to do then?
|
|
#4
|
|||
|
|||
|
Quote:
Learn about device drivers (Microsoft DDK is a place to start. Lots of books.) Regards, Dave |
Recent GIDBlog
Writing a book by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Tutorial] How to hide e-mail address from SPAM Bots | BobbyDouglas | Web Design Forum | 40 | 13-Feb-2006 09:44 |
| Why seg fault in char array? | nusstu | C Programming Language | 11 | 24-Aug-2004 16:10 |
| A Comprehensive Digest of C++ | mithunjacob | C++ Forum | 39 | 20-Jun-2004 19:09 |
| Rebase - Must Get! | BobbyDouglas | Miscellaneous Programming Forum | 0 | 18-Aug-2003 04:57 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The