新手用MFC求教,在咋们CSDN上搜到一个程序刚好我要用,收拾了一堆出错后剩下这个求教。

{WM_NULL,"WM_NULL"},
{WM_CREATE,"WM_CREATE"},
{WM_DESTROY,"WM_DESTROY"},
{WM_MOVE,"WM_MOVE"},
{WM_SIZE,"WM_SIZE"},
{WM_ACTIVATE,"WM_ACTIVATE"},
{WM_SETFOCUS,"WM_SETFOCUS"},
{WM_KILLFOCUS,"WM_KILLFOCUS"},
{WM_ENABLE,"WM_ENABLE"},
{WM_SETREDRAW,"WM_SETREDRAW"},
{WM_SETTEXT,"WM_SETTEXT"},
{WM_GETTEXT,"WM_GETTEXT"},
{WM_GETTEXTLENGTH,"WM_GETTEXTLENGTH"},
{WM_PAINT,"WM_PAINT"},
{WM_CLOSE,"WM_CLOSE"},
{WM_QUERYENDSESSION,"WM_QUERYENDSESSION"},
{WM_QUIT,"WM_QUIT"},
后半部分全是波浪线
出错提示:
1>e:\pjb\messagetip\messagetip\stdafx.h(71): error C2440: “初始化”: 无法从“const char [8]”转换为“LPCTSTR”
1> 与指向的类型无关;转换要求 reinterpret_cast、C 样式转换或函数样式转换
1>e:\pjb\messagetip\messagetip\stdafx.h(72): error C2440: “初始化”: 无法从“const char [10]”转换为“LPCTSTR”
1> 与指向的类型无关;转换要求 reinterpret_cast、C 样式转换或函数样式转换
1>e:\pjb\messagetip\messagetip\stdafx.h(73): error C2440: “初始化”: 无法从“const char [11]”转换为“LPCTSTR”
1> 与指向的类型无关;转换要求 reinterpret_cast、C 样式转换或函数样式转换
1>e:\pjb\messagetip\messagetip\stdafx.h(74): error C2440: “初始化”: 无法从“const char [8]”转换为“LPCTSTR”

查看全部
sinat_17144053
sinat_17144053
2015/06/06 12:30
  • mfc
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

4个回复