Как вызвать файл .cpp в MQL5?

Я пытаюсь вызвать файл DLL, чтобы использовать функцию из библиотеки DLL. Но я потерпел неудачу. См. Ошибку, с которой я столкнулся:

#import "BPNN1.dll"
string Train(
   double &inpTrain[], // Input training data (1D array carrying 2D data, old first)
   double &outTarget[],// Output target data for training (2D data as 1D array, oldest 1st)
   double &outTrain[], // Output 1D array to hold net outputs from training
   int    ntr,        // # of training sets
   int    UEW,        // Use Ext. Weights for initialization (1=use extInitWt, 0=use rnd)
   double &extInitWt[],// Input 1D array to hold 3D array of external initial weights
   double &trainedWt[],// Output 1D array to hold 3D array of trained weights
    int    numLayers,  // # of layers including input, hidden and output
    int    &lSz[],      // # of neurons in layers. lSz[0] is # of net inputs
    int    AFT,        // Type of neuron activation function (0:sigm, 1:tanh, 2:x/(1+x))
    int    OAF,        // 1 enables activation function for output layer; 0 disables
    int    nep,        // Max # of training epochs
    double maxMSE      // Max MSE; training stops once maxMSE is reached
    );

string Test(
   double &inpTest[],  // Input test data (2D data as 1D array, oldest first)
   double &outTest[],  // Output 1D array to hold net outputs from training (oldest first)
   int    ntt,        // # of test sets
   double &extInitWt[],// Input 1D array to hold 3D array of external initial weights
    int    numLayers,  // # of layers including input, hidden and output
    int    &lSz[],      // # of neurons in layers. lSz[0] is # of net inputs
   int    AFT,        // Type of neuron activation function (0:sigm, 1:tanh, 2:x/(1+x))
    int    OAF         // 1 enables activation function for output layer; 0 disables
    );
#import

Ошибка:
 изображение ресурса

Это означает, что dll не загружается и не читается. Итак, есть ли способ включить .cpp исходный файл в мою программу MQL5 и использовать его? Пожалуйста, подскажите мне выход.


person Jaffer Wilson    schedule 11.04.2018    source источник
comment
# импортировать BPNN1.dll и не удается загрузить BPNNl.dll, или похоже, что последняя буква маленькая L?   -  person Daniel Kniaz    schedule 11.04.2018
comment
2018.04.11 05:02:55.935 2018.01.01 00:00:00 Cannot load 'C:\Users\AIM\AppData\Roaming\MetaQuotes\Tester\D0E8209F77C8CF37AD8BF550E51FF075\Agent-127.0.0.1-3000\MQL5\Indicators\BPNN\BPNN1.dll' [126] Я думаю, что это что-то непонятное.   -  person Jaffer Wilson    schedule 11.04.2018
comment
Это не маленький L. Это 1 (один)   -  person Jaffer Wilson    schedule 11.04.2018
comment
Уже посмотрел stackoverflow.com/questions/1922580 / import-a-dll-with-c-win32?   -  person YesThatIsMyName    schedule 11.04.2018