I'm relative new to MQL5 and I learned a lot from this article! Thanks very much!
I have one question. Have been struggling a bit for the past 2 days to figure this out down below.
I have successfully completed each step a couple of times even on another computer but everytime when I try to compile the code I get an error message.
The MQL compiler states : "Undeclared Identifier" for any of the enumerations down below.
If I "comment" these enumerations out from MQL5 then it works accordingly which is interesting since this means that the code works but can't read the enumerations which is my guess?
If someone can help me I would greatly appreciate :)
I am also trying to import a C# assembly. I can compile successfully, even with a call to a method imported from the assembly, so during compile time, everything seems to be fine.
But during executing in the Strategy Tester, it fails to load the EA with a simple "Cannot load 'MyDll.dll' [0]".
I put the DLL into MQL5\Libraries. I also tried putting it into the GAC, but nothing helped.
I am also trying to import a C# assembly. I can compile successfully, even with a call to a method imported from the assembly, so during compile time, everything seems to be fine.
But during executing in the Strategy Tester, it fails to load the EA with a simple "Cannot load 'MyDll.dll' [0]".
I put the DLL into MQL5\Libraries. I also tried putting it into the GAC, but nothing helped.
Any pointers on how to troubleshoot this?
Call up the MQL reference in the editor (in the "Help"), go to the Search tab and enter Dll, Enter.
Then there is a page on how to import dlls (and others).
Tatsächlich erinnern sich nicht viele Entwickler daran, wie eine simple DLL-Bibliothek geschrieben wird und was die Merkmale der unterschiedlichen Systemanbindungen sind. Anhand mehrerer Beispiele werde ich versuchen, Ihnen den gesamten Prozess zur Erstellung einer simplen DLL in 10 Minuten zu zeigen, sowie einige technische Einzelheiten der...
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
For MT4, We need to do some changes on MtGuiController.dll. like DLLEXPORT using RGiesecke.DllExport and marshalling input & output parameters.
I'm relative new to MQL5 and I learned a lot from this article! Thanks very much!
I have one question. Have been struggling a bit for the past 2 days to figure this out down below.
I have successfully completed each step a couple of times even on another computer but everytime when I try to compile the code I get an error message.
The MQL compiler states : "Undeclared Identifier" for any of the enumerations down below.
If I "comment" these enumerations out from MQL5 then it works accordingly which is interesting since this means that the code works but can't read the enumerations which is my guess?
If someone can help me I would greatly appreciate :)
Thanks,
I am also trying to import a C# assembly. I can compile successfully, even with a call to a method imported from the assembly, so during compile time, everything seems to be fine.
But during executing in the Strategy Tester, it fails to load the EA with a simple "Cannot load 'MyDll.dll' [0]".
I put the DLL into MQL5\Libraries. I also tried putting it into the GAC, but nothing helped.
Any pointers on how to troubleshoot this?
I am also trying to import a C# assembly. I can compile successfully, even with a call to a method imported from the assembly, so during compile time, everything seems to be fine.
But during executing in the Strategy Tester, it fails to load the EA with a simple "Cannot load 'MyDll.dll' [0]".
I put the DLL into MQL5\Libraries. I also tried putting it into the GAC, but nothing helped.
Any pointers on how to troubleshoot this?
Call up the MQL reference in the editor (in the "Help"), go to the Search tab and enter Dll, Enter.
Then there is a page on how to import dlls (and others).
However, this article is probably better: https://www.mql5.com/en/articles/18
or this one: https://www.mql5.com/en/docs/runtime/testing#dll
Otherwise, enter tester dll in the search at the top right.was anybody able to figure out why there is below error?
The MQL compiler states : "Undeclared Identifier" for any of the enumerations down below.
I am also getting same error.
was anybody able to figure out why there is below error?
The MQL compiler states : "Undeclared Identifier" for any of the enumerations down below.
I am also getting same error.
You can use the numeric representation of each Event Type:
Here is an example with SendEvent Function (This code is from TardePanel EA):
You change the representation of the event TextChange for its ID which is 2, and you do this for all the function that need it.