1> CPMsgPage. CPP
1> D: \ \ Program Files \ VS 2005 VC \ \ include \ xlocnum (123) : error C2065: "nCount:" not statement of identifiers
1> The diagnosis in the compiler to generate the function of "CCPMsgPage: : InsertMessages: : sHistory & amp; CCPMsgPage: : InsertMessages: : sHistory: : operator=(const CCPMsgPage: : InsertMessages: : sHistory & amp;) "
1> D: \ \ Program Files \ VS 2005 VC \ \ include \ xlocnum (123) : error C2065: "strID" : no statement of identifiers
1> The diagnosis in the compiler to generate the function of "CCPMsgPage: : InsertMessages: : sHistory & amp; CCPMsgPage: : InsertMessages: : sHistory: : operator=(const CCPMsgPage: : InsertMessages: : sHistory & amp;) "
1> D: \ \ Program Files \ VS 2005 VC \ \ include \ xlocnum (123) : error C2065: "strMessage" : no statement of identifiers
1> The diagnosis in the compiler to generate the function of "CCPMsgPage: : InsertMessages: : sHistory & amp; CCPMsgPage: : InsertMessages: : sHistory: : operator=(const CCPMsgPage: : InsertMessages: : sHistory & amp;) "
1> CPMonitorPanel. CPP
1> ClientSocket. CPP
1> ClientSamLight. CPP
1> CBarcodeGun. CPP
1> CAutoLaserCode. CPP
1> AnimatedLayout. CPP
1> CSpecialCode. CPP
1> Being generated code...
1> Generate log in "new visual HMX file://d:\Desktop\P3 \ Machine \ Debug \ BuildLog HTM"
1> The Machine - three errors, a warning
==========all regenerated: 0 has successfully, 1 has failed, 0 skipped==========
Vs2005 compiler, the same code in other computers have no problem, but this computer compilation is not passed, the output error of the three variables are
In this structure: struct sHistory {int nCount; Cstrings strID; Cstrings strMessage; }; Grammar what I how also can't get to this problem,
CodePudding user response:
The corresponding code is as follows:Void CCPMsgPage: : InsertMessages ()
{
CStringArray strArray;
If (ReadAllHistory (GetAbsolutePathName (MESSAGE_XML), strArray))
{
Cstrings strKey;
((CComboBox *) GetDlgItem (IDC_COMBO_SELECT_LIST)) - & gt; GetWindowText (strKey);
Struct sHistory
{
Int nCount;
Cstrings strID;
Cstrings strMessage;
};
CArray
for(int i=0; i
If (strArray [I] Find (strKey) & gt; 1)
{
If (m_nShowType==0)
{
M_wndMsgList. InsertItem (0, GetContentInLine (strArray [I], _T (" USER ")));
M_wndMsgList. SetItemText (0, 1, GetContentInLine (strArray [I], _T (" LOT ")));
M_wndMsgList. SetItemText (0, 2, GetContentInLine (strArray [I], _T (" ID ")));
M_wndMsgList. SetItemText (0, 3, GetContentInLine (strArray [I], _T (" CONTENT ")));
M_wndMsgList. SetItemText (0, 4, GetContentInLine (strArray [I], _T (" TIME ")));
}
Else if (m_nShowType==1)
{
M_wndMsgList. InsertItem (0, GetContentInLine (strArray [I], _T (" LOT ")));
M_wndMsgList. SetItemText (0, 1, GetContentInLine (strArray [I], _T (" ID ")));
M_wndMsgList. SetItemText (0, 2, GetContentInLine (strArray [I], _T (" CONTENT ")));
M_wndMsgList. SetItemText (0, 3, GetContentInLine (strArray [I], _T (" TIME ")));
}
The else
{
Int nTotal=(int) arrayID. GetCount ();
SHistory data;
Data. The strID=GetContentInLine (strArray [I], _T (" ID "));
If (nTotal & lt;=0)
{
Data. StrMessage=GetContentInLine (strArray [I], _T (" CONTENT "));
Data. NCount=1;
ArrayID. Add (data);
}
The else
{
BOOL bAdd=TRUE;
For (int a=0; A. & lt; NTotal; +)
{
If (arrayID [a]. StrID==data. The strID)
{
ArrayID [a]. NCount++;
BAdd=FALSE;
break;
}
}
If (bAdd)
{
Data. StrMessage=GetContentInLine (strArray [I], _T (" CONTENT "));
Data. NCount=1;
ArrayID. Add (data);
}
}
}
}
}
If (m_nShowType & gt; 1)
{
For (int b=0; B
Int index=m_wndMsgList. InsertItem (m_wndMsgList GetItemCount (), arrayID [b] strID);
M_wndMsgList. SetItemText (index, 1, arrayID [b] strMessage);
Cstrings STR.
STR. The Format (_T (" % d "), arrayID [b] nCount);
M_wndMsgList. SetItemText (index, 2, STR);
}
}
}
}
CodePudding user response:
Try to RebuildCodePudding user response:
Tried, uselessCodePudding user response:
See error messages, include library is to see if there is any guide inConfirmed it is not lack of reference file, look at the environment configuration and whether other computers on the same
CodePudding user response: