Ok, thanks for clarification.

I still have trouble with getting the right results. The GetHeartCoherence function returns a long and the DLL returns always 123 in my VC++ app (because this is a debug version for me), but in Lite-C I get a 2 - and 123 is confirmed by the developer that this is the right return value.

Can you imagine why this could happen?