// A simple message box, with only the OK button.
AfxMessageBox(_T("Simple message box."));// A message box that uses a string from a string table
// with yes and no buttons and the stop icon.
// NOTE: nStringID is an integer that contains a valid id of
// a string in the current resource.
AfxMessageBox(nStringID, MB_YESNO|MB_ICONSTOP);
上面的代码是从msdn上查到的代码,我想问的是nStringID是个什么东西?a valid id of
a string in the current resource.这是什么意思?我要怎么获得呢?
如果使用这条代码 AfxMessageBox("Are you sure?",MB_YESNO|MB_ICONQUESTION);那么编译通过不了,所以我实在头痛- -
求哪位大侠帮帮忙啊!~
AfxMessageBox(_T("Simple message box."));// A message box that uses a string from a string table
// with yes and no buttons and the stop icon.
// NOTE: nStringID is an integer that contains a valid id of
// a string in the current resource.
AfxMessageBox(nStringID, MB_YESNO|MB_ICONSTOP);
上面的代码是从msdn上查到的代码,我想问的是nStringID是个什么东西?a valid id of
a string in the current resource.这是什么意思?我要怎么获得呢?
如果使用这条代码 AfxMessageBox("Are you sure?",MB_YESNO|MB_ICONQUESTION);那么编译通过不了,所以我实在头痛- -
求哪位大侠帮帮忙啊!~
各种字符集,及转换可以研究一下
AfxMessageBox(_T("Are you sure?"),MB_YESNO|MB_ICONQUESTION);