Discussion of article "Developing graphical interfaces for Expert Advisors and indicators based on .Net Framework and C#" - page 10
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
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.