const int MAXSIZE_APPBUF = 256; TCHAR lpszApp[MAXSIZE_APPBUF]; LoadString(NULL, IDS_WELCOME, lpszApp, MAXSIZE_APPBUF); AfxMessageBox(lpszApp); LoadString,可以载入一个资源文件里的字符串,是一个宏,对应LoadStringW和LoadStringA两个版本。 相关文章: