Einzelnen Beitrag anzeigen

Benutzerbild von Neutral General
Neutral General

Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
 
Delphi 10.2 Tokyo Professional
 
#8

Re: Record aus Speicherbereich initialisieren

  Alt 19. Jan 2010, 18:20
Die Methoden die ich eben gepostet habe funktionieren beide.

Die 2. Ist evtl sogar nochn Tick eleganter (finde ich) weil inc dort automatisch so viele Bytes nach oben wie es nötig ist... z.B.

Delphi-Quellcode:
inc(PRect(P)) // +16
inc(PPoint(P)) // +8
inc(PWord(P)) // +2
Michael
"Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."
  Mit Zitat antworten Zitat