Hello,
i have a DLL which can make use of callback functions. This custom function is called from
DLL on specific events. The callback function must be of stdcall and is of type void.
The DLL function to hook a cb is then called like this:
HookMyFunction((int) CallBackF); // only for 32 bit processes (int) CallBackF points entry of callback
Now i need to know, if MetaTrader at all can provide such a callback function
and how to declare it that it is static and how get its pointer ?
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.
i have a DLL which can make use of callback functions. This custom function is called from
DLL on specific events. The callback function must be of stdcall and is of type void.
->
static void stdcall CallBackF(string var,double var2,int var3).
The DLL function to hook a cb is then called like this:
HookMyFunction((int) CallBackF); // only for 32 bit processes (int) CallBackF points entry of callback
Now i need to know, if MetaTrader at all can provide such a callback function
and how to declare it that it is static and how get its pointer ?
thank you