Autor Beitrag
Martin1966
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1068

Win 2000, Win XP
Delphi 7, Delphi 2005
BeitragVerfasst: Fr 23.01.09 13:51 
Hallo :wink2:!

Kann mir einer von Euch sagen was genau ein "marshal" in C# ist und was das Gegenstück in Delphi wäre? Danke!!!

Lg, Martin

_________________
Ein Nutzer der Ecke ;-)
Kha
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3803
Erhaltene Danke: 176

Arch Linux
Python, C, C++ (vim)
BeitragVerfasst: Fr 23.01.09 14:50 
msdn.microsoft.com/e...ibrary/04fy9ya1.aspx hat folgendes geschrieben:
Interop marshaling governs how data is passed in method arguments and return values between managed and unmanaged memory during calls. Interop marshaling is a run-time activity performed by the common language runtime's marshaling service.
Da Delphi keine managed Sprache ist, braucht es da eigentlich nichts Vergleichbares (ein PChar-Parameter einer WinAPI-Funktion wird auch als solcher und nicht als String benutzt). Bzw. benutzt man dort, wo in .Net-Sprachen die Marshal-Klasse benötigt wird, einfach direkt Pointer.

_________________
>λ=