mt5_developer / Publications
Forum
how to declare and call a function with callback function pointer as parameter imported from dll?
for example: 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, const char * insId, call_back f); How should I declare and call it in mql5? #import "tclient.dll" //how to declare function sub_tick