I have a C++ dll i will be using in C#. Proceeded with using dllImport to access the dll's functions.
DLL has function Write() and SetCallback(BOOL (*pCallBack)(WORD, DWORD, char*))
SetCallback() function is called when Write() is currently writing to be able to show progress.
I do this:
This code catches NullReferenceException. :(
When i comment out SetCallBack() function, everything works fine.
Anyone have any ideas as to the cause?