DLL Import Issue

 

I created a DLL, and placed the .dll file in MQL5/Libraries folder of the MT5 directory. When I attach the EA to the chart, i get the following error:

Cannot open 'dll_test.dll' (126)

what could be the issue?

  • EA code to import .dll
#import "dll_test.dll"
int function1(int a, int b);
#import

 
This DLL is written in C# VS2010

 
c0d3:
This DLL is written in C# VS2010

I wrote an article for using C# DLLs in MT5. I hope it will be published soon.

Best Regards

Investeo

 

 
investeo:

I wrote an article for using C# DLLs in MT5. I hope it will be published soon.

Best Regards

Investeo

 


I look forward to reading your article!


I had to develop a C++ DLL wrapper to call C# DLL functions by following the article below. The cool thing is that I'm testing the DLLs in MT4, and it should be working flawlessly with MT5 as well.


Thank you to who ever wrote this:

http://disorderly-conductor.spaces.live.com/default.aspx?wa=wsignin1.0&sa=935140471

 
c0d3:


I look forward to reading your article!

It has already been published. See Exposing C# code to MQL5 using unmanaged exports
Reason: