hi there,
I have two header files
Form.h and serial.h
in Form.h I declare and call a class like this:
CRC df1;
crc = df1.CHECK(crc,buffer[6]);
serial.h
class CRC {
public:
int x,y;
unsigned char CHECK (unsigned char cPrev, unsigned char cNext)
{
unsigned char cNew = (cPrev << 1) & 0xFF;
if(cPrev & 0x80)
{
cNew --;
}
cNew ^= cNext;
return cNew;
}
};
when I compile this it runs it but when I debug it it seems never to call the method CHECK can anyone explain what I do wrong?
it seems never to get to the method CHECK I have checked this with a break point
Many thanks
Last edited on