I'm making some callbacks but in the DLL that I'm using I got some functions that use another functions as parameters, I already tried to use the interface but I couldn't make it work.
The function in DLL is like:
extern "C" { __declspec(dllexport) DIRET_CALLBACK void RegEnterString(pCallBackEnterString);}
I got an example in C#:
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
public delegate void _RegEnterString(_CallBackEnterString cbEnterString);
private _RegEnterString dllRegEnterString;
public delegate int _CallBackEnterString(StringBuilder parte1, int tamParte1, StringBuilder parte2, int tamParte2);