【发布时间】:2013-04-12 04:34:28
【问题描述】:
我被困在将我的项目从 VC6 移植到 VS2010 的过程中。请任何人都可以帮助我。
void CEdchLoop::ReceiveSdu(UINT8* Sdu, UINT32 BitLength, int Fn)
{
UINT8* pPdu = Sdu;
int Bit = 8;
UINT32 SourceId = GetBitsL(pPdu, BitLength, Bit, 32);
UINT32 PduUniqueId = GetBitsL(pPdu, BitLength, Bit, 32);
}
在上面的代码中,我收到错误 C2664: 'GetBitsL' : cannot convert parameter 1 from 'UINT8 *' to 'const UINT8 *&'
GetBitsL 被定义为UINT32 GetBitsL(const UINT8*& Bin, UINT32& BitLength, int& Bit, int Count)
请任何人帮助我解决这个问题。如果这不是一个绝妙的问题,我很抱歉。但傻五分钟总比永远傻。
提前致谢。
【问题讨论】:
标签: c++ visual-studio-2010 visual-c++-6