m.b runtime library. C/C++ -> Code generation -> runtime library, select Multi-threaded (/MT)
mxp wrote >>
thans for your answer,
i tried what you have done(create empty project, copy code set runtime library to Multi-threaded and i had to set the Configuration Type to dynamic link library) but it the same error occured again.
What do you mean with "m.b runtime library"?
Have you made sure to Export the functions from your new DLL in the same way that the sample DLL does ?...
Make sure you have something similar to the sample projects "ExpertSample.def" file in your new project. This can cause an error 127.
is right. you should use def files to define exported functions.
Also build your dll as Release, not debug
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Hi,
I'd like to use an extern dll. I tried to use the ExpertSample dll and it worked. I even could compile this sample with Visual Studio 2008 ant it also worked. But when I opened a new project (classlibrary(dll)) in Visual Studio and copied the code from the ExpertSample into it, I could compile it of course. But when I tried to use it in meta trader, I got the error message "cannot call function 'GetIntValue' from dll 'myLibrary.dll' (error 127)". Do anybody know what the problem could be? Do I have to set any compiler settings to get it work?
Thank you very much
mxp