Passing a 2 dimensional array to a C++ DLL

 

I am trying to pass a 2 dimensional double array to a C++ DLL without much luck. Is it actually possible to do this?

The errors I am getting is "Cannot find 'ProcessFFTW' in DLLTest1.dll"  and  "FFTW_DLL Test 1 EURUSD, M1: unresolved import function call"

This is the C++ code

#include "stdafx.h"

#define MT4_EXPFUNC __declspec(dllexport)

MT4_EXPFUNC void _stdcall ProcessFFTW(double *input, double *output[][5], int barCount, double threshold)
{
        output[2][2] = &input[2];
}


and this is my MQL4 code

#import "DLLTest1.dll"
void ProcessFFTW(double &arr[], double &arr2[][], int, double);
#import

void OnStart()
{
    double threshold = 5.0;
    double arr[5]={1.5, 2.6, 3.7, 4.8, 5.9};
    double arr2[5][5];

    int count = ArraySize(arr);

    ProcessFFTW(arr, arr2, count, threshold);


    Alert(arr2[2][2]+"   "+ count);
   
}

Any assistance to help me do this would be greatly appreciated

Thanks,

John

Reason: