I haven't used dlls but according to these : https://www.mql5.com/en/forum/106871/page2 and https://docs.mql4.com/runtime/imports I think you should export with _stdcall instead of __declspec
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
Hello Guys,
I am having problems using a dll function in mt4. I have this function in C that I tested in another C console application program. I exported like
in my C console application I call it like this with no problems. I place the myfunctiondll.dll and myfunctiondll.lib in the /Debug/ folder were the executable is and in the linker option I add the dependancies.
However in mt4 I get the error cannot call function 'myfunction' from dll 'myfunction.dll' (error127) . I used in this EA code:
I put myfunctionddl.dll and myfunctiondll.lib inside ../experts/libraries/