Discussion of article "Communicating With MetaTrader 5 Using Named Pipes Without Using DLLs" - page 7
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
Is the server for one client? I'm trying to connect a second client, the connection doesn't open. 5004 error. The file name is the same as in the other client connected.
If I disconnect the first client, the second one connects. So one named channel is only one connection?
How to connect two MT clients via named channels?
Tried the code from here https://www.mql5.com/en/articles/115. It doesn't work. Connect method hangs.
colleagues, can you please see if this example is working for you at the moment?
my tests on VS 2022 / VS 2026 + MT5 5570 + Win11
client can't open a pipe created by the server, INVALID_HANLE on FileOpen.
who has it working? how did you manage to run it?
similar example for MT4 - also does not work https://www.mql5.com/ru/forum/28683#comment_59076685
The problem turned out to be UAC.
the server was running with admin and MT without.
The problem is solved either by starting with the same permissions or by adding SECURITY_ATTRIBUTES to CreateNamedPipe with zeroed Dacl.