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?
- MQL5 Wizard: Development of trading robots for MetaTrader 5
- Payments in MetaTrader 5
- MetaEditor - Professional editor of trading applications
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.
- www.mql5.com
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.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register