Answer the question
In order to leave comments, you need to log in
How to pass a C# function as a parameter to a native function?
The library has a certain function, let's say Func, I have this function declared in C#:
[DllImport("library.dll")]
[SuppressUnmanagedCodeSecurity()]
public static extern void Func(тут нужна ссылка на функцию);
void (LIBCALLBACK *func)(void);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question