Download MetaTrader 5

Writing DLL:s that interact with MQL5

To add comments, please log in or register
Trade with MetaTarder 5. Download it right now!
Ingvar Engelbrecht
4501
Ingvar Engelbrecht 2010.12.12 02:20 

I have written a few DLL:s for MT4. One of them was a 2-way communication with Excel. One problem I had was that MT4 is good at talking to C++ but can not talk to Visual Basic. On the other hand talking to Excel from C++ is awkward to put it mildly.  Using visual basic to talk to Excel is simple. Talking to Visual Basic with C++ is also awkward but it is at least minimzed. Working with "SafeArrays" is no fun though.

What changes, if any are made in the way MQL5 can  communicate with DLL:s?

gjrexach
68
gjrexach 2010.12.13 15:17  

Hi all:

I am converting an MQ4 Indicator to MQ5. The MQ4 Indicator uses a 32 bit DLL which works fine on the MQ4 Platform even though I am running on a 64 bit Toshiba. However, when I attempt to run the MQ5 Indicator, I get a message stating that the dll is not 64-bit version. How can this be resolved? (I dont have the source for the dll).

Thanks.. 


Ilyas
1206
Ilyas 2010.12.13 16:59  
You should use 32-bit version terminal. Please run mt5setup from console with parameter /32
mt5setup.exe /32

To add comments, please log in or register