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):
int WriteFile(int FileHandle, uchar & Buffer[], int BufferLength, int & BytesWritten[], int PassAsZero);
int ReadFile(int FileHandle, uchar & BufferPtr[], int BufferLength, int & BytesRead[], int PassAsZero);
Using Char arrays to comunicate between the server and client:
If someone still has problems managing named pipes in MT4 v600, this is the way I solved it:
Server:
Client:
If someone still has problems managing named pipes in MT4 v600, this is the way I solved it:
Server:
Client:
Can you please attach the files (client and server examples) with your new code ?
I can't manage to solve communication via Named Pipes with modifications you posted above.
Thank you.