Questions from Beginners MQL5 MT5 MetaTrader 5 - page 772

 
forexman77:
Placed inside the function, the error disappeared.

See how useful it is to write on the forum:)))

As soon as I complained, the error freaked out and disappeared :)))

Good luck.

 
Alexey Viktorov:

See how useful it is to write on the forum:)))

As soon as I complained, the bug freaked out and disappeared:)))

Good luck.


Thanks. Well, I'm just learning to read minds at a distance)

 
forexman77:
Placed inside the function, the error disappeared.

You can't initialize global variables with something you don't understand ))

 

Hi all.
Can anyone advise how to copy value from MT5 Expert Advisor to win10 buffer, as an analogue of ctrl+V pressing?
If you don't mind, with example of working code, I don't understand how to work with DLL myself.

 
0Aleksandr0:

Hi all.
Can anyone advise how to copy value from MT5 Expert Advisor to win10 buffer, as an analogue of ctrl+V pressing?
If you don't mind, with example of working code, I don't understand how to work with DLL myself.

https://www.mql5.com/ru/forum/6343/page580#comment_2486140

 

Thank you very much for the example).
I copied the code into EA, buffer is cleared but remains empty.
The EA hangs, some critical error occurs in debugger.
The main thing is where to start, now I will figure it out)

 
EA crashes on copying to memory with a critical error, changed the line
#import "msvcrt.dll"
   uint memcpy( uint dest, string src, uint count );
#import

at

#import "msvcrt.dll"
   uint memcpy( uint &dest, string &src, uint count );
#import

now the terminal crashes when copying to buffer at all

 SetClipboardData( CF_UNICODETEXT, hMem );

I don't understand WinAPI, what's wrong here?

 
0Aleksandr0:
Expert Advisor crashed on copying to memory with critical error, changed the line

at

now the terminal crashes when copying to buffer at all

I don't understand anything about WinAPI, what's wrong here?

You should ask such questions to the person who provided the code from the link I gave you.

 
OK. I hope he sees the question.
If anyone else is on the subject, please advise what the problem is.
From scraps of information from various C++ forums, I suspect that Win10 doesn't allow direct access to the buffer, how to do it right.
 
0Aleksandr0:
OK. I hope he sees the question.
If anyone else is on the subject, please advise what the problem is.
From scraps of information from various C++ forums, I suspect that Win10 doesn't allow direct access to the buffer, how to do it right.

For him to accurately see the question, I need to respond to his post in that thread. Or call him as I am calling you now: @0Aleksandr0, with the condition that the ability to receive push messages to mobile is enabled.


Reason: