TCHAR buf[32];
srand( (unsigned)time( NULL ) ); for(int row = 1; row <= nRowCount; ++row)
{
m_Chart.SetRow(row); _stprintf(buf, _T("%d号 "), row);
m_Chart.SetRowLabel((LPCTSTR)buf);//_T( "a ") ... }
srand( (unsigned)time( NULL ) ); for(int row = 1; row <= nRowCount; ++row)
{
m_Chart.SetRow(row); _stprintf(buf, _T("%d号 "), row);
m_Chart.SetRowLabel((LPCTSTR)buf);//_T( "a ") ... }
CString str;
str.Format(_T("%d号"),row);
m_Chart.SetRowLabel((LPCTSTR)str);
解决了。不过楼上的也可以!谢谢 fishion