Autor Beitrag
Boldar
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1555
Erhaltene Danke: 70

Win7 Enterprise 64bit, Win XP SP2
Turbo Delphi
BeitragVerfasst: Do 08.09.11 19:25 
Hi,
wie bekomme ich Sendmessage Sauber in C# implementiert? Ich bekomme immer eine Warnung, dass der Stack nicht stimmt.
Außerdem bräuchte ich noch Findwindow.
Kann mir dazu vielleicht einer ein Beispielgeben?
Ich habe zwar schon Google bemüht, aber leider wenig Ahnung von Invoke etc. und brauche dass kurzfristig...
mfg Boldar
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Do 08.09.11 19:32 
Hallo!

Eine gute Anlaufstelle für sowas ist eigentlich pinvoke.net. Da scheint es sowohl zu SendMessage als auch zu FindWindow Einträge inklusive Beispielcode zu geben.

Grüße,
Christian

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
pdelvo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 55
Erhaltene Danke: 11



BeitragVerfasst: Do 08.09.11 22:27 
PInvokeStackInbalance besagt, dass eetwas mit der Methodensignatur nicht stimmt. Welche benutzt du denn?