摘要: CString转换成const char 需要考虑一个因素: 你使用是否为unicode 不使用unicode: CString Cstr("aaaaaaa"); const char* str; str=Cstr.GetBuffer(sizeof(Cstr)); 如果你在用... 阅读全文
posted @ 2014-03-11 11:30 水蒸蛋不好吃 阅读(273) 评论(0) 推荐(0)
摘要: 1.GetDlgItem获取文本编辑框的指针来获取内容 先使用 GetDlgItem(编辑框的ID)获取编辑框的指针。 再指向编辑框的GetWindowText函数将获取内容保存至指定的字符数组里。 下面是代码。 int num1,num2,num3; char c... 阅读全文
posted @ 2014-03-11 10:46 水蒸蛋不好吃 阅读(899) 评论(0) 推荐(0)