bool LibrarySecurityQ1(){return(false);}
int AccountsAllowed(){return(AccountNumber());}
Hi, I am trying to write a .dll for my EA.
I am new at C++ though, and I am trying to convert the above MQL into C++. If someone could show me an example of the above in C++ I would be very grateful.
If anyone is really brave, I would be curious how to convert the below in to C++ too (this expiry idea was compliments of Sergey Kravchuk's protection article)
int Expiry()
{
stringchar[256]; int i;
for (i = 0; i < 256; i++) char[i] = CharToStr(i);
// Date, until which the expert is allowed to workint LastAllowedDate = StrToTime(
// 2011.12.12 23:59:00 char[50]+char[48]+char[49]+char[49]+char[46]+char[49]+char[50]+char[46]+char[49]+
char[50]+char[32]+char[50]+char[51]+char[58]+char[53]+char[57]+char[58]+char[48]+char[48]
);
if (TimeCurrent() >= LastAllowedDate)
{
return(444);
}
return(555);
}
I am currently using a library.ex4 as security, however would like to step it up a notch into a .dll
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hi, I am trying to write a .dll for my EA.
I am new at C++ though, and I am trying to convert the above MQL into C++. If someone could show me an example of the above in C++ I would be very grateful.
If anyone is really brave, I would be curious how to convert the below in to C++ too (this expiry idea was compliments of Sergey Kravchuk's protection article)
I am currently using a library.ex4 as security, however would like to step it up a notch into a .dll
Any help would be appreciated.
Thank you kindly.