Calling a DLL from within an EA
stringo:
Thanks. I was able to fix the problem. I had started with a DLL created using the .NET 2005 (unmanged code in C++). Apparemtly there are some settings for the project files that are not compatible with MQL. I did not figure out what they were. Instead, I started with the ExpertSample project file and placed my code in it and modified the file names. This seems to have done the trick and things are working now.
What is "unable to call the function in the DLL"?
Can You show exact log message?
I am getting an error message in the EA log that I am unable to call the function in the DLL. I thought it might be a parmeter passing issue so I made a dummy function with no params:
int getInt();
In the DLL this is defined as
__declspec(dllexport) int __stdcall getInt() { return 1; }
i am also enabling Expert Advisors and no confirmation of DLL calls.
Can anyone tell me what I am doing wrong or point me to a possible solution?