Autor Beitrag
WolfB
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 39

WinXP Professional
Delphi 7
BeitragVerfasst: Mi 01.02.06 20:16 
hi,
hab da mal ne frage. was ist der unterschied zwischen einer variable vom typ thandle und einer vom typ hwnd ??
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: Mi 01.02.06 20:24 
THandle kann eine beliebige Ressource referenzieren (Resourcen-Handle), während HWND dem geneigten Programmierer den Hinweis auf die Nutzung eines Fenster-Handles geben soll. Speichern kann man in beiden Datentypen alles Mögliche, jedoch existieren die beiden Typen, um die damit referenzierten Resourcen etwas besser zu trennen. Unter C++ sind beide Datentypen nämlich grundverschieden und nicht direkt zueinander zuweisbar.

_________________
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.
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 01.02.06 20:25 
HWND ist der Windows Datentyp und THandle der korrespondierende Delphi Datentyp. Wobei THandle als Cardinal deklariert ist und HWND in Delphi als LongWord. LongWord und Cardinal sind beides 32-Bit unsigned Integers, also zuweisungs kompatibel.
WolfB Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 39

WinXP Professional
Delphi 7
BeitragVerfasst: Mi 01.02.06 20:26 
okay, danke