这两句代码为什么不对?( Application->OnMessage)在线等
public:// User declarations
void _fastcall tbwaveMouseDownOrUp(tagMSG &Msg,bool &Handled);//鼠标按下或松开
void __fastcall TfrmFsk::tbwaveEnter(TObject *Sender)//调用
{
Application-> OnMessage =tbwaveMouseDownOrUp;// 此句报错
}
[Linker Error] Unresolved external '__fastcall TfrmFsk::tbwaveMouseDownOrUp(tagMSG&, bool&) ' referenced from D:\ME2000P_10\FSK.OBJ
这是什么原因??
[解决办法]
你只定义了,cpp里面没有实现吧
void _fastcall TfrmFsk::tbwaveMouseDownOrUp(tagMSG &Msg,bool &Handled)
{
}