问一下这里的函数申明老是报错,是怎么回事啊?
我这里自己在对话框类CCommPortDlg加了几个函数.但是老是报local function definitions are illegal.不知道为什么,我看了我在头文件还有CPP文件里面好像没有什么问题吗.
比如其中的inputManage函数:
头文件申明:
class CCommPortDlg : public CDialog
{
// Construction
public:
...
void InputManage(int len, BYTE * bytInput);
...
}
而Cpp文件里面:
void CCommPortDlg::InputManage(int len, BYTE *bytInput)
{
int i;
for(i=0;i<len;i++)
bytReceiveByte[intReceiveLen + i]=bytInput[i];//*(bytInput+i)
intReceiveLen=intReceiveLen+len;
}
我不知道为什么老是报错,好像没有什么问题的啊?
大家帮帮忙,谢谢