if you want to access a pascal lib from c, you might need to use the "cdecl" calling convention for your pascal routines.

Or maybe "stdcall"

Not sure about C# though...

cheers,
Paul