Quote:
Originally Posted by babyminion
Anyone please help?
7.WorldServer error LNK2019: unresolved external symbol "public: void __thiscall CDPSrvr::OnHideCoat(class CAr &,unsigned long,unsigned long,unsigned char *,unsigned long)" (?OnHideCoat@CDPSrvr@@QAEXAAVCAr@@KKPAEK@Z) referenced in function "public: __thiscall CDPSrvr::CDPSrvr(void)" (??0CDPSrvr@@QAE@XZ)
|
Make sure you have defined your function in DPSrvr.cpp
IN CDPSrvr::CDPSrvr() constructor add somethinglike this:
Code:
ON_MSG( PACKETTYPE_HIDE_COAT, &CDPSrvr::OnHideCoat);
And create the definition of your function like this:
Code:
void CDPSrvr::OnHideCoat( CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE lpBuf, u_long uBufSize )
{
//.........
}
In DPSrvr.h make sure to have the declaration of the function:
Code:
void OnHideCoat( CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE lpBuf, u_long uBufSize );