Re: Callbacks from unmanaged code to managed code
"Murphy, James" <[email protected]> Mon, 24 Jun 2002 17:58:35 -0400
| Newsgroups | gmane.comp.windows.devel.dotnet.general |
|---|---|
| Message-ID | <254711F14832D411A032009027FC9E04EF5E00@M2PROD> |
Can you share code? > -----Original Message----- > From: Axel Heitland [mailto:[email protected]] > Sent: Monday, June 24, 2002 6:07 PM > To: [email protected] > Subject: [DOTNET] Callbacks from unmanaged code to managed code > > > Dear list, > > It's quite easy to call unmanaged functions from MC++ and it's easy to > hold a reference to a managed type from unmanaged code as well. > > But how the heck can I call a managed function (i.e. an > instance member > function) from unmanaged code?! > > A direct call is treated as an error by the compiler - is it really so > hard to support this? And if that doesn't work, what's the workaround? > > I know that this has been asked before, but the answers in > the archives > aren't satisfying :-( > > Any pointers are highly appreciated > Axel > > You can read messages from the DOTNET archive, unsubscribe > from DOTNET, or > subscribe to other DevelopMentor lists at http://discuss.develop.com. > You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.