DLLImports

R

Rein Petersen

Hi Folks,

I want to import a Windows32 class library that utilizes callback
functions - but I want to do all my coding in C#. Is there any way to wire
up a dll import to callback to, I'd guess, a C# delegate ?

Rein
 
M

Martin Robins

Traditionally, the Win32 DLL would accept a window handle that messages are
sent to and this is the same when calling Win32 from C#. Pass the HWnd
parameter of a form to the DLL and then override the WindProc in the form.
 

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