here is a dll named tclient.dll, which include a function below:
typedef TCLIENT_API void(*call_back)(Tick* p);
TCLIENT_API int sub_tick(CTX ctx, constchar* insId, call_back f);
How should I declare and call it in mql5?
#import "tclient.dll"//how to declare function sub_tick? #import
void save_tick()
{
//how to call function sub_tick?
}
for example:
here is a dll named tclient.dll, which include a function below:
any thoughts? thanks a lot!