在winfrm.cpp中有如下Code:
void CFrameWnd::GetMessageString(UINT nID, CString& rMessage) const
{
// load appropriate string
LPTSTR lpsz = rMessage.GetBuffer(255);
if (AfxLoadString(nID, lpsz) != 0)
{
// first newline terminates actual string
lpsz = _tcschr(lpsz, '/n');
if (lpsz != NULL)
*lpsz = '/0';
}
else
{
// not found
TRACE1("Warning: no message line prompt for ID 0x%04X./n", nID);
}
rMessage.ReleaseBuffer();
}
AfxLoadString(nID, lpsz)加载string资源失败。