callback to managed code from unmanaged code

B

bill

All,

How can I supply a C++ function callback pointer to an unmanaged DLL
and have it call back into my managed code?

TIA

Bill
 
T

Tamas Demjen

bill said:
All,

How can I supply a C++ function callback pointer to an unmanaged DLL
and have it call back into my managed code?

It was discussed in this thread:
http://tinyurl.com/77bc9

Note that the Thunk class demonstrated there leaks gchandle, which Willy
corrected in the last message.

Tom
 

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