Mihail Matkovskij: What should be the offset (input int MessageBroadcast) for user events if UI elements from the standard library(Include\Controls\) are used in the programme? How can I find out?
I am not a big library expert. Judging by the definition of events in the Defines.mqh file, the maximum reserved index there is 100.
Judging by the words - control identifiers. Controls are not events.
Maybe... But it doesn't say what identifiers. I set MessageBroadcast 10000 and everything works. You can set even 1000000 and more, the ushort type allows it. Although even with 100 there will be no conflicts. In any case, any UI element has its own id, which is checked in the conditions of event processing. In general, the probability of normal operation is quite high.
It would be nice if the main expert could get the CPU load to know how many tasks can be added for execution. But unfortunately I have not found such a function in the documentation.
However I get issues when trying to compile with metatrader 5.
Initialise sequence for array expected:
in template 'const TYPETOBYTES::STRUCT_TYPE<T> TYPETOBYTES::FillBytes(const uchar)' specified with [T=uchar] TypeToBytes.mqh 314 31
I understand that it is an issue initilising the array. I could try to fix it. However, I dont see any report of this issue, wondering whether it is only my self facing the issue.
However I get issues when trying to compile with metatrader 5.
Initialise sequence for array expected:
in template 'const TYPETOBYTES::STRUCT_TYPE<T> TYPETOBYTES::FillBytes(const uchar)' specified with [T=uchar] TypeToBytes.mqh 314 31
I understand that it is an issue initilising the array. I could try to fix it. However, I dont see any report of this issue, wondering whether it is only my self facing the issue.
Thanks for the article anywell, wonderful anyway!
Make sure you're using the latest TypeToBytes library.
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.
What should be the offset (input int MessageBroadcast) for user events if UI elements from the standard library(Include\Controls\) are used in the programme? How can I find out?
I am not a big library expert. Judging by the definition of events in the Defines.mqh file, the maximum reserved index there is 100.
I am not a big expert of the library. Judging by the definition of events in the Defines.mqh file, the maximum reserved index there is 100.
Obviously, from 15 to 99 the developers left a reserve for new event id. But in addition to this, another constant caught my eye.
Maximum number or maximum number of id's in the application. What can it mean...?
Obviously, from 15 to 99 the developers left a margin for new id events. But in addition to this, another constant caught my eye.
Maximum number or maximum number of ids in the application. What can it mean...?
According to the words - control identifiers. Controls are not events.
Judging by the words - control identifiers. Controls are not events.
Maybe... But it doesn't say what identifiers. I set MessageBroadcast 10000 and everything works. You can set even 1000000 and more, the ushort type allows it. Although even with 100 there will be no conflicts. In any case, any UI element has its own id, which is checked in the conditions of event processing. In general, the probability of normal operation is quite high.
How would this be designed now that there are services in MT5?
How would this be designed now that there are services in MT5?
Really nice article.
However I get issues when trying to compile with metatrader 5.
Initialise sequence for array expected:
in template 'const TYPETOBYTES::STRUCT_TYPE<T> TYPETOBYTES::FillBytes(const uchar)' specified with [T=uchar] TypeToBytes.mqh 314 31
I understand that it is an issue initilising the array. I could try to fix it. However, I dont see any report of this issue, wondering whether it is only my self facing the issue.
Thanks for the article anywell, wonderful anyway!
Really nice article.
However I get issues when trying to compile with metatrader 5.
Initialise sequence for array expected:
in template 'const TYPETOBYTES::STRUCT_TYPE<T> TYPETOBYTES::FillBytes(const uchar)' specified with [T=uchar] TypeToBytes.mqh 314 31
I understand that it is an issue initilising the array. I could try to fix it. However, I dont see any report of this issue, wondering whether it is only my self facing the issue.
Thanks for the article anywell, wonderful anyway!
Make sure you're using the latest TypeToBytes library.
MetaTrader 5
Version: 5.00 build 2093
02 Jul 2019
===cut here===
2019.07.23 00:47:37.182 multiwebclient (USDJPY,H1) Accepted: aQuotes\Terminal\D0E8209F77C8CF37AD8BF550E51FF075\MQL5\Experts\multiwebclient.ex5::USDJPY_PERIOD_H1_2_128968169154443359 after 0 retries
===cut here===