It turns out that optimization using remote farm network agents blocks when a DLL is available in the code.
The exact message is (are):
And this makes sense to me. I fully understand why Metatrades would do this.
So my fix, for when I use remote agents, is to use a compiler directive. When the directive is set, the DLL is not imported, and dummy functions replace the DLL functions. So this works:
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.
It turns out that optimization using remote farm network agents blocks when a DLL is available in the code.
The exact message is (are):
And this makes sense to me. I fully understand why Metatrades would do this.
So my fix, for when I use remote agents, is to use a compiler directive. When the directive is set, the DLL is not imported, and dummy functions replace the DLL functions. So this works:
So my question:
Is there a better way to handle this so that I can still have the benefits of kernel32 when not using remote agents?