Click here to Skip to main content
15,922,325 members
Home / Discussions / C#
   

C#

 
GeneralRe: [2.0] a few read/writeprocessmemory questions Pin
games guru6-Jul-07 6:04
games guru6-Jul-07 6:04 
GeneralRe: [2.0] a few read/writeprocessmemory questions Pin
Jimmanuel6-Jul-07 6:27
Jimmanuel6-Jul-07 6:27 
GeneralRe: [2.0] a few read/writeprocessmemory questions Pin
games guru6-Jul-07 6:38
games guru6-Jul-07 6:38 
GeneralRe: [2.0] a few read/writeprocessmemory questions Pin
Jimmanuel6-Jul-07 7:04
Jimmanuel6-Jul-07 7:04 
GeneralRe: [2.0] a few read/writeprocessmemory questions Pin
games guru6-Jul-07 7:28
games guru6-Jul-07 7:28 
GeneralRe: [2.0] a few read/writeprocessmemory questions Pin
Jimmanuel6-Jul-07 7:47
Jimmanuel6-Jul-07 7:47 
GeneralRe: [2.0] a few read/writeprocessmemory questions Pin
games guru6-Jul-07 7:50
games guru6-Jul-07 7:50 
GeneralRe: [2.0] a few read/writeprocessmemory questions Pin
Jimmanuel6-Jul-07 8:10
Jimmanuel6-Jul-07 8:10 
I guarantee you in whatever high level language he did it in (whoever "he" is) he preallocated the memory region using some form of new or by creating variables or he's reading/writing to a some file.

I think you're still missing the point that I'm trying to get across here - forget about addresses entirely in C#. Store your data in objects!!! The opcode thing is an array of bytes? So create a byte[] named opCodes and store your opcodes in it. It's easier to use the hex value? Then create an Int64 named opCodeHexDump and use that to modify it's value. There's absolutely no reason whatsoever to have to know the address where the data is stored in memory.

What are the OpCodes, anyway? Do you mean assembly level operation codes - as in the translation of assembly into machine code? Or are they just some internal op codes in your game?



GeneralRe: [2.0] a few read/writeprocessmemory questions [modified] Pin
games guru6-Jul-07 8:30
games guru6-Jul-07 8:30 
GeneralRe: [2.0] a few read/writeprocessmemory questions Pin
Jimmanuel6-Jul-07 8:40
Jimmanuel6-Jul-07 8:40 
GeneralRe: [2.0] a few read/writeprocessmemory questions Pin
games guru6-Jul-07 9:04
games guru6-Jul-07 9:04 
GeneralRe: [2.0] a few read/writeprocessmemory questions Pin
Jimmanuel6-Jul-07 9:35
Jimmanuel6-Jul-07 9:35 
GeneralRe: [2.0] a few read/writeprocessmemory questions Pin
games guru6-Jul-07 9:43
games guru6-Jul-07 9:43 
GeneralRe: [2.0] a few read/writeprocessmemory questions Pin
PhilDanger6-Jul-07 11:23
PhilDanger6-Jul-07 11:23 
GeneralRe: [2.0] a few read/writeprocessmemory questions Pin
Luc Pattyn6-Jul-07 15:55
sitebuilderLuc Pattyn6-Jul-07 15:55 
GeneralRe: [2.0] a few read/writeprocessmemory questions Pin
games guru6-Jul-07 16:01
games guru6-Jul-07 16:01 
GeneralRe: [2.0] a few read/writeprocessmemory questions Pin
Luc Pattyn6-Jul-07 16:38
sitebuilderLuc Pattyn6-Jul-07 16:38 
GeneralRe: [2.0] a few read/writeprocessmemory questions Pin
games guru6-Jul-07 16:46
games guru6-Jul-07 16:46 
GeneralRe: [2.0] a few read/writeprocessmemory questions Pin
Luc Pattyn6-Jul-07 17:03
sitebuilderLuc Pattyn6-Jul-07 17:03 
Questionmerge two files in a file Pin
WhiteGirl236-Jul-07 3:58
WhiteGirl236-Jul-07 3:58 
AnswerRe: merge two files in a file Pin
BoneSoft6-Jul-07 4:07
BoneSoft6-Jul-07 4:07 
AnswerRe: merge two files in a file Pin
Colin Angus Mackay6-Jul-07 4:07
Colin Angus Mackay6-Jul-07 4:07 
AnswerRe: merge two files in a file Pin
Christian Graus6-Jul-07 4:09
protectorChristian Graus6-Jul-07 4:09 
GeneralRe: merge two files in a file Pin
Martin#6-Jul-07 7:32
Martin#6-Jul-07 7:32 
GeneralRe: merge two files in a file Pin
Colin Angus Mackay6-Jul-07 9:18
Colin Angus Mackay6-Jul-07 9:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.