Download MetaTrader 5
To add comments, please log in or register
Download MetaTrader 5 and start trading today!
franzk
70
franzk 2014.08.05 07:21 

Hi,

bare with me if this is quite obvious but I am wondering what the correct way of calling an external dll function is. According to its documentation the dll function is expecting a parameter of the type: "pointer to a null-terminated string"

So how should I call this function from mql?

// first option
void(uchar&[]);

// second option
void(string&);
AussieBattler
103
AussieBattler 2014.08.05 07:41  

If I remember correctly, null-terminated strings are ANSI and MQL4 is unicode. This means the string needs to be declared as an array of uchar type to allow conversion to unicode. So I would be using the top option, but i have a feeling there is something missing there....

/
To add comments, please log in or register