Board index » delphi » POINTERS POINTERS...
Erik Lundh
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
|
Erik Lundh
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
POINTERS POINTERS...I got a problem here.. I have defined a pointer like this: var vaddr : word; begin [cut] now.. if I want a part of the pointer, HOW DO I DO? I thought it was |
Glenn Grotzing
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:POINTERS POINTERS...QuoteErik Lundh <may...@algonet.se> wrote: |
dav
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:POINTERS POINTERS...QuoteErik Lundh <may...@algonet.se> wrote: that takes in a pointer type as a paramater and have the routine return the segment and/or the offset. if you pass the pointer as a value paramater than just read the segment or offset off the stack. hope this helps, |
Scott Earnes
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:POINTERS POINTERS...QuoteErik Lundh wrote: undefined. The best solution would probably be: type var begin I just want to make one extra point here. From what I can tell, you're using this as a If you're using BASM, you can use "les di,[ptrname]" to load a pointer, and in regular -- |
Ilya V. Truskovsk
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:POINTERS POINTERS...Quote> I got a problem here.. I have defined a pointer like this: This problem is not a problem !!! You could simply define another pointer and then load address in it EXAMPLE: You want to access position 32000! var *** After that you can "other_pointer" will contain address to 32000'th item! Hope, it will help ya! bye. |
ct..
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:POINTERS POINTERS...In <3245A50D.5...@algonet.se>, Erik Lundh <may...@algonet.se> writes: Quote>I got a problem here.. I have defined a pointer like this: step 1. type var begin Chuck Todd |
AVONTURE Christoph
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:POINTERS POINTERS... You can use the MEM or MEMW command Example: MyData := MemW[Seg(vaddrp):Ofs(vaddrp)]; QuoteErik Lundh <may...@algonet.se> wrote: ___ ___ Delphi Super Page: http://sunsite.icm.edu.pl/archive/delphi/delphi "Postings are personnal, and don't reflect Belgacom's opinion" |