TIP: Click on subject to list as thread! ANSI
echo: delphi
to: CHRISTIAN IVERSEN
from: ANDREW SPROTT
date: 1997-11-25 06:58:00
subject: How do you make memory access in delphi

   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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.