Dll Import C++ to C# with Arrays

I've been given the assignment to port some library routines to C# so our other application developers can access it, but I don't know how to declare the variables so they come into the routine correctly.

The problem is, when I step through reading the input in with the C++ code, I get all skewed values