Native funtion pointers in managed class

E

Ertan EFE

hi,

I want to use a native function as a member variable in managed class. I'll
set this member variable to a native funtion pointer with its retunr type
and params. so then I call such as PInvoke method on this member for
achieving call global unmanaged callback function.
I looked GetManagedThunkForUnmanagedMethodPtr method fro achieve this but
has example in msdn or other resources

Anyone help me ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top