Forum

Error CryptDecode

Hi, just trying the new CryptEncode and CryptDecode functions . Everything is working as expected with CryptEncode. However when using the provided example with a slight modification (converting the char array into a string and back to a char array). I am getting the 4029 error

unexpected behaviour datetime 840 vs 890

Hi, this sample code is behaving different in the build 840 vs build 890. Is this desired behaviour? string tstamp = "1444977373" ; Print (( datetime )tstamp); Print (( datetime )( ulong )tstamp); Output: build 890 2015.10 . 16 11 : 24 : 23.962 test EURUSD,H1: 2015.10 . 16 06 : 36 : 13 2015.10 . 16

Howto MqlRates to C++ DLL?

Hi, I have a problem passing the current MqlRates to a C++ DLL. Here is what I have done so far: MQL #import "MQL.dll" double ihigh( MqlRates &[], int ); #import MqlRates rates[]; bool called = false ; void OnTick () { if (called == false ) { ArrayCopyRates(rates, NULL ,0 ); called = true ;

Comprehension question on calling a dll

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

critical error wininet.dll

Hi, I am using wininet.dll to pass some data from my webserver to mt4. Everything is working as it should I do however once in a while get the following error message: "function 'InternetReadFile' call from dll 'wininet.dll' critical error c0000005 at 763A1285." When I get this message the response