Autor Beitrag
scrooge
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 200



BeitragVerfasst: Fr 16.04.04 17:19 
Hi,

ist es in Delphi möglich (wie in C++) Pointer zu Ink- bzw. dekrementieren ?? Wen ja, wie ??
n
UC-Chewie
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 531

WinXP
D5 Ent
BeitragVerfasst: Fr 16.04.04 19:12 
Ja, Inc(p) bzw. Dec(p).
Geht nur mit typisierten Pointer, dabei wird aber gleich um die richtige Datenbreite dekrementiert.

_________________
Egal wie dumm man selbst ist, es gibt immer andere, die noch dümmer sind
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Sa 17.04.04 13:54 
Ansonsten gehts auch über ein paar Typecasts:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
var
  p: Pointer;

p := Pointer(DWord(p) + 1);

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!
scrooge Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 200



BeitragVerfasst: Di 20.04.04 14:10 
Danke !!