//#include "afxres.h" //如果没用mfc就可以替换为下两行 #include <Windows.h> #include <winres.h> //只要上面winres.h一句就可以了.