G
Guest
I have a DLL written in C++ (unmanaged), which I want to inteface with.
I created a standard window form program with VC++ 2005, all fine
I have imported an .h file the .lib file and all works.
/clr is on so I am writing managed code.
the problem comes when I need to use a function of the DLL with a callback
function parameter. (address of a function)
No way to get it compiled due to managed code restrictions.
I can get it working with /clr:noAssembly but i'd rather use managed code.
I think that I need to use delegate? correct?
I did not found any example, anyone can help me?
Many Thanks,
Filippo
I created a standard window form program with VC++ 2005, all fine
I have imported an .h file the .lib file and all works.
/clr is on so I am writing managed code.
the problem comes when I need to use a function of the DLL with a callback
function parameter. (address of a function)
No way to get it compiled due to managed code restrictions.
I can get it working with /clr:noAssembly but i'd rather use managed code.
I think that I need to use delegate? correct?
I did not found any example, anyone can help me?
Many Thanks,
Filippo