Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1613723
  • 博文数量: 245
  • 博客积分: 10378
  • 博客等级: 上将
  • 技术积分: 2571
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-27 08:19
文章分类

全部博文(245)

文章存档

2013年(4)

2012年(8)

2011年(13)

2010年(68)

2009年(152)

分类: WINDOWS

2010-08-09 18:06:37

http://hi.baidu.com/longvi/blog/item/07ba96d086caff85a1ec9c16.html
这么说: 

VS2005编译器的检查更严格了,在vc6vc7种可以编译通过的语句:AfxMessageBox(“test”);只能写成AfxMessageBox(_T(“test”));才能使用,否则编译器会告诉你有两个AfxMessageBox函数,但编译器不知道使用哪一个。错误提示如下:

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

        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxwin.h(5025): could be 'int AfxMessageBox(LPCTSTR,UINT,UINT)'

        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxwin.h(5027): or 'int AfxMessageBox(UINT,UINT,UINT)'

        while trying to match the argument list '(const char [22])'

阅读(1349) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~