乱码问题
int num1,num2,num3;
char ch1[10],ch2[10],ch3[10];
GetDlgItem(IDC_EDIT1)->GetWindowText((LPTSTR)ch1, 10);
GetDlgItem(IDC_EDIT2)->GetWindowText((LPTSTR)ch2, 10);
num1 = atoi(ch1);
num2 = atoi(ch2);
num3 = num1 + num2;
itoa(num3, ch3, 10);
GetDlgItem(IDC_EDIT3)->SetWindowText((LPTSTR)ch3);
上面这段代码,只是计算EDIT1和EDIT2中的和显示到EDIT3,但在EDIT3中显示的是乱码啊,用的是VS2008,这个问题出在哪里了呢?
char ch1[10],ch2[10],ch3[10];
GetDlgItem(IDC_EDIT1)->GetWindowText((LPTSTR)ch1, 10);
GetDlgItem(IDC_EDIT2)->GetWindowText((LPTSTR)ch2, 10);
num1 = atoi(ch1);
num2 = atoi(ch2);
num3 = num1 + num2;
itoa(num3, ch3, 10);
GetDlgItem(IDC_EDIT3)->SetWindowText((LPTSTR)ch3);
上面这段代码,只是计算EDIT1和EDIT2中的和显示到EDIT3,但在EDIT3中显示的是乱码啊,用的是VS2008,这个问题出在哪里了呢?
...全文
相关推荐
设置乱码问题(设置乱码问题)
设置乱码问题,设置乱码问题设置乱码问题设置乱码问题设置乱码问题设置乱码问题设置乱码问题设置乱码问题设置乱码问题设置乱码问题设置乱码问题设置乱码问题设置乱码问题设置乱码问题设置乱码问题
Android乱码问题总结
NULL 博文链接:https://yufeng-zhu.iteye.com/blog/1675446
mysql中文乱码问题
本文介绍了在mysql安装时选择了utf8编码方式,创建数据库时也选择了utf8,但是通过程序向数据库中插入数据时,仍存在乱码问题的解决方法
乱码问题解决
乱码问题解决一个简单的方法
idea日志乱码和tomcat日志乱码问题的解决方法
主要介绍了idea日志乱码和tomcat日志乱码问题的解决方法,本文给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以参考下


