Download MetaTrader 5

MT4 EA dll does not work with MT5

To add comments, please log in or register
Log in to using OpenID. It is convenient!
dene999 2010.10.13 00:43 
I have a .dll which worked in MT4 but I get "Cannot import [function]" on Vista 64 bit, and "Cannot load [dll path]" on XP.  Are there any special steps that must be taken to make a C++ dll work with a MT5 EA?
Alexey Da
Alexey Da 2010.10.13 15:20  

Give us an example.

Which DLL and which function did you try to use? How did you do it?

dene999 2010.10.13 22:53  

When I download and test code from this article it happens, no changes made to code.  Dll is placed in Libraries folder after compiling.

 I get a "Cannot import.." error for every function in the dll that is used in the EA. 

How to Exchange Data: A DLL for MQL5 in 10 Minutes
  • 2010.01.27
  • MetaQuotes Software Corp.
Now not so many developers remember how to write a simple DLL, and what are special features of different system binding. Using several examples, I will try to show the entire process of the simple DLL's creation in 10 minutes, as well as to discuss some technical details of our binding implementation. I will show the step-by-step process of DLL creation in Visual Studio with examples of exchanging different types of variables (numbers, arrays, strings, etc.). Besides I will explain how to protect your client terminal from crashes in custom DLLs.
To add comments, please log in or register