Autor Beitrag
Aya
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: Mo 25.02.08 00:36 
Hi,

ich benutze öffters mal die funktion Ptr() um einen Integer in eine PointerAdresse umzuwandeln..
Bei FPC will er aufeinmal 2 Parameter haben "sel" und "off".. weiß jemand was das für Parameter sind?

Aya

_________________
Aya
I aim for my endless dreams and I know they will come true!
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Mo 25.02.08 01:33 
sel wird sicherlich eine Basis-Adresse sein (z.B. nil) und off dein Integer, den Du umwandeln willst.

Alternativ kannst Du auch gleich Pointer(Offset) schreiben ...

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Muetze1
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 346



BeitragVerfasst: Mo 25.02.08 02:28 
Nein, Ptr() ist ein relikt vom RealMode 16 Bit. Seg ist das Segment und Offset der Offset. Heutzutage werden nur noch lineare Adressierung unter 32 Bit benutzt, sprich wie es BenBE geschrieben hat.

_________________
49 63 68 68 61 62 65 6B 65 69 6E 65 41 68 6E 75 6E 67 21