Greetings,
I am hoping to recieve feedback on the following error:
no matching function for call to `CCtm::SetVect (int, void ()())'
candidates are: CCtm::SetVect(BYTE, void *)
I have the function SetVect() declared and i am sending the required variables.
Here is a code snip:
Code:
CCtm::CCtm()
{
if(!c_iInitOk)
{
SetupBIUM(c_wTmcrInit);
SetVect (CTM_IRQ_MCSM2, IrqCtmMCSM2);
SetVect (CTM_IRQ_DASM3, IrqCtmDASM3);
}
}
//--------------------- CCtm::SetVect-------------------------
void CCtm::SetVect(BYTE channel,void *startAdr)
{
long *pointer;
pointer = (long *)(IRQ_VECTOR_TAB_PTR + c_byBaseVect + channel);
*pointer = (long) startAdr;
}
Thanks for your time.