Download MetaTrader 5
To add comments, please log in or register
Manage agents in your profile. It is easy!
Андрей
21
Андрей 2011.02.07 19:42 

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

Андрей
21
Андрей 2011.02.07 21:55  
This DLL is written in C# VS2010

investeo
4090
investeo 2011.02.08 00:52  
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

 

Андрей
21
Андрей 2011.02.11 05:01  
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

Rashid Umarov
Admin
6606
Rashid Umarov 2011.02.11 09:31  
c0d3:


I look forward to reading your article!

It has already been published. See Exposing C# code to MQL5 using unmanaged exports
/
To add comments, please log in or register