Hi Christian,
21-Nov-97 07:57:40, Quoting Christian Iversen to All about :
How do you make memory access in delphi
CI> I am making a program that uses lots of graphics.
CI> But then how can you make memory access direct, the mem array
CI> dosn't work in delphi (pascal only). I have seen in the online
It does, try
max_segment=$ffff; { change this to $ffffffff for delphi 2 and 3 }
p_char_array=^t_char_array;
t_char_array=array[0..max_segment div sizeof(char)] of char;
p_word_array=^t_word_array;
t_word_array=array[0..max_segment div sizeof(word)] of word;
etc etc etc...
and then in the code put
char_in_array:=p_char_array(pointer_to_memory)^[offset_within_segment];
word_in_array:=p_word_array(pointer_to_memory)^[offset_within_segment];
etc etc etc...
Andrew Sprott
--- Terminate 5.00/Pro
---------------
* Origin: Talisoft : asprott@crystal.dircon.co.uk (2:254/220.117)
|