CRC16_0
pretty interesting...
A C function called by C++ : the C function prototyping ...
extern "C" -prototype-of-c-function;
Example:
[CRC.C]
int CRC16(char *data,int datalen)
{
................
}
[Figurout.cpp]
extern "C" int CRC16(char *.int);
void Figutout::OnReflash(void)
{
char dd[100];
int k;
..........
k= CRC16(dd,100);
........
}
沒有留言:
張貼留言