I missed the point with the 64bit address. But I'm still crashing with the corrected address. Is it sure it should work? Can I see a full example of the corrected fxsaber code?
So far I am still of my own opinion - the address from WinAPI is incompatible with MQL.
I found a mistake, why the corrected version did not work for me. I made a typo, missed & in one place.
By the way, MS considers the memcpy function unsafe and obsolete and suggests memcpy_s instead. Besides, the first parameter is not const. So the result is:
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.
the last parameter (which is cnt) is also 64 bits. It is size_t
https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/memcpy-wmemcpy
Thanks.
of course it does...prototypes are from 4 (32 bit address a la unsigned int), and you compile/run in 5 (it has 64).
Retarded, I wrote via longs earlier myself.
I missed the point with the 64bit address. But I'm still crashing with the corrected address. Is it sure it should work? Can I see a full example of the corrected fxsaber code?
So far I am still of my own opinion - the address from WinAPI is incompatible with MQL.
I found a mistake, why the corrected version did not work for me. I made a typo, missed & in one place.
My opinion has changed, thank you all.
By the way, MS considers the memcpy function unsafe and obsolete and suggests memcpy_s instead. Besides, the first parameter is not const. So the result is:
Interesting examples. A question for connoisseurs. Is it possible to get the address of a vector, matrix, object of any class?
Interesting examples. Question for connoisseurs. Is it possible to get the address of a vector, matrix, object of any class?
no