HRSRC hRrc=::FindResourceW(NULL, MAKEINTRESOURCE(IDR_TEXT1),_T("TEXT")); if(hRrc==NULL) { AfxMessageBox(_T("hRrc is null")); return; } HGLOBAL hDataSource=::LoadResource(NULL,hRrc); if(hDataSource==NULL) { AfxMessageBox(_T("hDataSource is null")); return; } LPVOID memBlock= ::GlobalLock(hDataSource); char* p=(char*)memBlock; string data; while(*p!=EOF) { data.push_back((*p)); p++; } ::MessageBoxA(m_hWnd,data.c_str(),"提示",MB_OK);