Re:Seg and Ofs in Delphi3
Im Artikel <37152E45.487F7...@mail.usask.ca>, Robert John Sample
<rjs...@mail.usask.ca> schreibt:
Quote
>What Delphi functions are equivalent to the Seg command
32 bit applications have no equivalents. There all addresses are 32 bit (4
byte) offsets into the address space of the instance. You can use Pointers
instead of separate Seg and Off values, e.g. @MyArray[0] is the address of the
first item in the MyArray array. Pointers should be used only for the data
portion of an array, not for the array itself, since an array can consist of
separate or at least incompatible array descriptions, and the data in a
possibly different memory area. Perhaps better solutions for your problem
exist, but then you should post some code, how the Seg and Off values are used
in your application.
DoDi