解决一个关于Tab控件的问题哦
源程序如下TCITEM item;
item.mask = TCIF_TEXT;
item.pszText ="第一页";
m_Head.InsertItem (0,&item);
m_Client.InsertItem (0,&item);
item.pszText ="第二页";
m_Head.InsertItem (1,&item);
m_Client.InsertItem (1,&item);
item.pszText ="第三页";
m_Head.InsertItem (2,&item);
m_Client.InsertItem (2,&item);
item.pszText ="第四页";
m_Head.InsertItem (3,&item);
m_Client.InsertItem (3,&item);
item.pszText ="第五页";
m_Head.InsertItem (4,&item);
m_Client.InsertItem (4,&item);
编译的时候出现如下错误
11dlg.cpp(122) : error C2440: '=' : cannot convert from 'const char [7]' to 'LPWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
11dlg.cpp(125) : error C2440: '=' : cannot convert from 'const char [13]' to 'LPWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
11dlg.cpp(128) : error C2440: '=' : cannot convert from 'const char [9]' to 'LPWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
11dlg.cpp(131) : error C2440: '=' : cannot convert from 'const char [11]' to 'LPWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
11dlg.cpp(134) : error C2440: '=' : cannot convert from 'const char [11]' to 'LPWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
不知这种错误是怎么回事哦?
求助帮忙解决一下啊!
先谢谢了哦!