Just add a parameter to the functions, of type HLP_LinkManager*.
void HLP_LinkManager::run()
{
int rc;
//HLP server initialization
rc=HLP_Init(HLP_LINK_SERVER,HLPReceiveMessage,HLPReceiveError,this);
}
void HLPReceiveMessage(tyHLP_Message message, tyHLP_LinkID linkId,HLP_LinkManager* pHlpMgr)
{
pHlpMgr->processMessage();
}
void HLP_LinkManager::run()
{
int rc;
//HLP server initialization
rc=HLP_Init(HLP_LINK_SERVER,HLPReceiveMessage,HLPReceiveError,this);
}
void HLPReceiveMessage(tyHLP_Message message, tyHLP_LinkID linkId,HLP_LinkManager* pHlpMgr)
{
pHlpMgr->processMessage();
}
To copy to clipboard, switch view to plain text mode
Bookmarks