Download MetaTrader 5
To add comments, please log in or register
Deposit to your account via WebMoney
plusbox
60
plusbox 2016.11.25 03:27 

DLL to Communicate with two or more terminals

 I need read or get Account Balance for terminal one in terminal two AND terminal two in terminal one

this DLL.cpp 

#include "stdafx.h"
#pragma data_seg(".ESC_SHARED")

double first (double one) {return one;}
double second (double two) {return two;}

#pragma data_seg()
#pragma comment(linker,"/SECTION:.ESC_SHARED,RWS")

in mq4

#import "DLL_EA.dll"
double first (double one);
double second (double two);
#import 

 in terminal #1

first=AccountBalance();

 in terminal #2

second=AccountBalance();


I put the dll file in folder C:\Windows it work but 

How can send these value throw dll file to read it from dll file 


Alain Verleyen
Moderator
28548
Alain Verleyen 2016.11.25 09:18  

Do you really need a DLL for such things ?

MT4/MT5 provide a COMMON folder where you can easily read/write files from any terminal (on the same computer of course).

plusbox
60
plusbox 2016.11.27 00:25  
any one have idea!
/
To add comments, please log in or register