I think I have basically understood how to write c# delegates for callbacks, but this one is confusing me. The c++ definition is as follows:
typedef int (__s
A .NET long is 64bits. A C++ long may be just 32bits. Check with the C++ compiler which compiled that definition as to what size it's longs are.
long