Dr.Wing

心翼的技术笔记本

  :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

AfxMessageBox(("click"));

错误 error C2665: 'AfxMessageBox' : none of the 2 overloads could convert all the argument types 

解决方法:
AfxMessageBox(_T("click")); 

解释:如果程序中define   _UNICODE,则可用_T   or   _TEXT将后面的内容转为UNICODE格式字符串,否则和不用_T一样

或者就修改项目属性里面的字符编码

posted on 2011-08-03 09:50  心翼  阅读(4494)  评论(0编辑  收藏  举报