问题是这样的
TCITEM tci;
tci.mask=TCIF_TEXT;
tci.pszText = "当天 ";
m_Tab.InsertItem(0,&tci);
tci.pszText= "最近 ";
m_Tab.InsertItem(1,&tci);
tci.pszText= "未来 ";
m_Tab.InsertItem(2,&tci);
报错:error C2440: '= ' : cannot convert from 'char [15] ' to 'unsigned short *
------解决方案--------------------
加上_T( " ")就行了,例如
tci.pszText = _T( "当天 ");
主要原因是因为wince使用的是unicode字符串。