怎么也通不过,求教
struct stcMsg
{
int num;
long nSize;
char*pMsg;
struct stcMsg*pNext;
};
void DoMsgGet(int num,char**pText,long* pSize)
{
pText=0,pSize=0;
struct stcMsg*pMsg=m_pMsg;
while (pMsg!=NULL)
{
if(pMsg->num==num)
{
cout<<"123"<<endl;
*pText =pMsg->pMsg;//这句通不过
*pSize=pMsg->nSize;
return;
}
pMsg=pMsg->pNext;
}
}
这样也不行
char* DoMsgGet(int num,long* pSize)
{
pSize=0;
struct stcMsg*pMsg=m_pMsg;
while (pMsg!=NULL)
{
if(pMsg->num==num)
{
*pSize=pMsg->nSize;//这句通不过
return pMsg->pMsg;
}
pMsg=pMsg->pNext;
}
return NULL;
}