MFC编译出错 error RC2108_ expected numerical dialog constant

⌚Time: 2023-11-30 04:30:33

👨‍💻Author: Jack Ge

插入PictureControl后,编译报错


error RC2108: expected numerical dialog constant

点击报错会跳转到rc文件错误的那行,会有类似


    CONTROL         IDB_BITMAP1, IDC_STATIC_LOGO, 192, 18, 203, 38, NOT WS_GROUP

改成


    CONTROL         IDB_BITMAP1, IDC_STATIC_LOGO, "Static", SS_BITMAP, 192, 18, 203, 38, NOT WS_GROUP

重新编译