const int MAXSIZE_APPBUF = 256 ; TCHAR lpszApp[MAXSIZE_APPBUF]; LoadString(NULL, IDS_WELCOME, lpszApp, MAXSIZE_APPBUF); AfxMessageBox(lpszApp); LoadString,可以载入一个资源文件里的字符串,是一个宏,对应LoadStringW和LoadStringA两个版本。 转载于:https://www.cnblogs.com/coderlee/archive/2007/12/17/1003760.html