| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 700 人关注过本帖
标题:解决一个关于Tab控件的问题哦
只看楼主 加入收藏
yundanping
Rank: 1
等 级:新手上路
帖 子:13
专家分:0
注 册:2007-9-17
收藏
 问题点数:0 回复次数:2 
解决一个关于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


不知这种错误是怎么回事哦?
求助帮忙解决一下啊!
先谢谢了哦!
搜索更多相关主题的帖子: Tab 控件 
2007-09-17 19:51
踏魔狼
Rank: 6Rank: 6
等 级:贵宾
威 望:24
帖 子:1322
专家分:33
注 册:2005-9-22
收藏
得分:0 

_T("第一页")


=×&D o I p R e E n C g T l X&×=
2007-09-17 21:46
yundanping
Rank: 1
等 级:新手上路
帖 子:13
专家分:0
注 册:2007-9-17
收藏
得分:0 
在这里向二楼的踏魔狼致意哈!
2007-09-17 21:54
快速回复:解决一个关于Tab控件的问题哦
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.017973 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved