After run:
a: valid terminal's path.
But error is 4051, invalid function parameter.
Please help me, who knows why this is.
GetLastError
Returns the contents of the system variable _LastError.
int GetLastError(); |
Returned Value
Returns the value of the last error that occurred during the execution of an mql4 program.
Note
After the function call, the contents of _LastError are not reset. To reset this variable, you need to call ResetLastError().
your error 4051 is coming from somewhere else . . . only test for errors when you need to.
GetLastError() does not work like it used to . . .
your error 4051 is coming from somewhere else . . . only test for errors when you need to.
Yes, I know, that, GetLastError() not reset.
New code is give same error, 4051. :)
I wrote the "int error=GetLastError();" pre command. I know, this is not nice.
New code:
ResetLastError(); string a=TerminalInfoString(TERMINAL_DATA_PATH); int error=GetLastError();
Yes, I know, that, GetLastError() not reset.
New code is give same error, 4051. :)
I wrote the "int error=GetLastError();" pre command. I know, this is not nice.
New code:
OK, I see what you mean, I get the same issue, please report this to the Service Desk with my test code if you like . . .
OK, I see what you mean, I get the same issue, please report this to the Service Desk with my test code if you like . . .
Where is Service Desk?
http://www.metaquotes.net/en/company/contacts ?
Where is Service Desk?
http://www.metaquotes.net/en/company/contacts ?
Click the link I gave and follow the instructions.
I follow the link and take to this topic:
Date displayed in the Optimization report
I can't read anything instructions
I follow the link and take to this topic:
Date displayed in the Optimization report
I can't read anything instructions
I discovered that the html tag <!--TESTSUMMARY--> of the "OptimizationReport.htm" template, which is supposed to contain the date period information among other things, is not working...
I remember to have read about a proper way to log MT4 bugs on the MT5 website. Could someone please send me the link for that, please?! Tried to search for it in the Forum but could not find it...
I discovered that the html tag <!--TESTSUMMARY--> of the "OptimizationReport.htm" template, which is supposed to contain the date period information among other things, is not working...
I remember to have read about a proper way to log MT4 bugs on the MT5 website. Could someone please send me the link for that, please?! Tried to search for it in the Forum but could not find it...
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
After run:
a: valid terminal's path.
But error is 4051, invalid function parameter.
Please help me, who knows why this is.