Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi Pointer operation (https://www.delphipraxis.net/130740-pointer-operation.html)

x000x 12. Mär 2009 14:34

Re: Pointer operation
 
Also so funktionierts...
Delphi-Quellcode:
var
   pData : PWord;
   a    : Integer;
   i    : Integer;
begin
   a := $FFFF0000;
   pData := @a;
   for i := 0 to DatLen-1 do
   begin
      if pData^ = $0000 then
        Inc(pData)
      else
        Dec(pData);
   end;
Ok, hat sich dann wohl erledigt ;-)

oli_a 12. Mär 2009 14:47

Re: Pointer operation
 
Oh, trotzdem Danke.


Alle Zeitangaben in WEZ +1. Es ist jetzt 19:19 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz