Click here to Skip to main content
15,905,508 members
Home / Discussions / C#
   

C#

 
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 
whatever clever addressing modes have been defined, you must implement them
yourself. The only basic operations are read direct (i.e. from a given address)
and write direct. All indirections, double indirections, offsets, indexing,
have to be programmed from that, step by step, unlike assembly code
where they exist as basic functionality to improve code density and execution time.

Of course there is nothing that stops you from putting complex addressing modes
in separate methods; example: IntPtr eaOffsetIndirect(IntPtr base, int ofs) could
use base, read an int thru it, add offset, and return that as an IntPtr, so
the caller can immediately operate on the intended operand.

Before you ask, yes you could write a native code function that performs any
complex addressing scheme your CPU provides, but calling it (which requires
P/Invoke to cross the managed/unmanaged boundary) is likely to cause more
overhead than executing it step-by-step in a higher-level language (such as C#).

Smile | :)




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 
AnswerRe: merge two files in a file Pin
snorkie6-Jul-07 4:11
professionalsnorkie6-Jul-07 4:11 
GeneralRe: merge two files in a file Pin
Luc Pattyn6-Jul-07 4:20
sitebuilderLuc Pattyn6-Jul-07 4:20 
GeneralRe: merge two files in a file Pin
Jimmanuel6-Jul-07 4:46
Jimmanuel6-Jul-07 4:46 
JokeRe: merge two files in a file Pin
Luc Pattyn6-Jul-07 5:01
sitebuilderLuc Pattyn6-Jul-07 5:01 
JokeRe: merge two files in a file Pin
Jimmanuel6-Jul-07 5:12
Jimmanuel6-Jul-07 5:12 
AnswerRe: merge two files in a file Pin
WhiteGirl236-Jul-07 20:14
WhiteGirl236-Jul-07 20:14 
QuestionSqlDataSourceQuery.Select Pin
dboy2216-Jul-07 3:38
dboy2216-Jul-07 3:38 
QuestionI am making C# program that interacts with webpage.get js val exec js function Pin
(kcd)6-Jul-07 3:36
(kcd)6-Jul-07 3:36 
QuestionGenerate AxInterop files Pin
Laurent.iss6-Jul-07 3:29
Laurent.iss6-Jul-07 3:29 

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.