Invalid argument for DLL Sub or Function

You can pass array elements, but not a whole array, to a DLL.