首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VC/MFC >

AfxMessageBox用法对吗?该怎么处理

2012-09-05 
AfxMessageBox用法对吗?C/C++ codeCString strerrorAfxMessageBox(str,warning,MB_OK)[解决办法]回

AfxMessageBox用法对吗?

C/C++ code
CString str="error";AfxMessageBox(str,"warning",MB_OK);


[解决办法]
回复于:2012-08-06 13:23:20MSDN一下,一切清楚。

AfxMessageBox
int AfxMessageBox( LPCTSTR lpszText, UINT nType = MB_OK, UINT nIDHelp = 0 );

int AFXAPI AfxMessageBox( UINT nIDPrompt, UINT nType = MB_OK, UINT nIDHelp = (UINT) -1 );
AfxMessageBox的应用程序标题不需要,默认为项目名。

MessageBox才是如此用法。
 

热点排行