A
Alexander Arlievsky
Hi,
I have mixed mode dll, which contains files with managed objects written in
MC++, and files with regular "C" functions.
One of those functions receives function pointer as parameter. I want to
pass to it delegate to managed object method.
I know how to do it from C# - DllImport etc. I suspect I can declare "stub"
method using those attributes, so it will actually reference "C" method, and
call this stub, letting marshaler to do the job. This will require to make
this "C" function exported. Is there another way to do it without simulating
C# way ?
--
==============================
Alexander Arlievsky
(e-mail address removed)
"The best tools for debugging are brains"
==============================
I have mixed mode dll, which contains files with managed objects written in
MC++, and files with regular "C" functions.
One of those functions receives function pointer as parameter. I want to
pass to it delegate to managed object method.
I know how to do it from C# - DllImport etc. I suspect I can declare "stub"
method using those attributes, so it will actually reference "C" method, and
call this stub, letting marshaler to do the job. This will require to make
this "C" function exported. Is there another way to do it without simulating
C# way ?
--
==============================
Alexander Arlievsky
(e-mail address removed)
"The best tools for debugging are brains"
==============================