Update MQL4 600 & Named Pipes - page 4

 
oscarin:

If someone still has problems managing named pipes in MT4 v600, this is the way I solved it:

  • Changing CreateNamedPipeA and CreateFileA, with CreateNamedPipeW and CreateFileW
  • Changing the declarations in ReadFile and WriteFile (Buffer), so, I can work with CharArrays (1 byte per character):

  • Using Char arrays to comunicate between the server and client:

Server:

Client:

I made the changes. But I get lot of error messages. I attached my file.
Files:
 
I stopped using pipes as long as I didn't found a pipe-server outside of mt4 as a mt4-pipserver is blocking!
 
gooly:
I stopped using pipes as long as I didn't found a pipe-server outside of mt4 as a mt4-pipserver is blocking!
What do you use instead for communicate between two MT4?
 

It wasn't between 2 mt4 but between a powershell script and a mt4 that send it's new positions.

As it wasn't time critical and primarily a kind of proof of concept I used normal files: mt4 opens (and seeks at the and) and adds the lines and powershell checks the existence of the file and reads and deletes it :(

I tried to connect to a running (local) socket server (to map in to out) as well but the mt4-socket-client never could establish a valid connection. :(

Reason: