我收到以下错误:
错误 C2664:“CSchemaString::CSchemaString(LPCTSTR)”:无法将参数 1 从“int”转换为“LPCTSTR”
对于以下代码:
for(i=0;i<=tComponent.GetUpperBound();i++)
{
CSchemaString temp(i); // LINE AT WHICH ERROR OCCURS
XComponent = ((Component *)tComponent.GetAt(i))->GetXMLCode(FOR_SAVING); //AddName(*/temp +":"+*/ ((Component *)tComponent.GetAt(i))->GetName());
XSave.AddPlant_Item(XComponent);
}
感谢任何帮助。