Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28459 Discussions

Adding an ICON via RESEDIT - RC2176 error

chunky_lover_23
Beginner
407 Views
When Adding an icon via RESEDIT and then attempting to build the solution using the resulting Script.rc - I get the following error:

Error 103 error RC2176 : old DIB in .\\icon_new.ico; pass it through SDKPAINT

Any Ideas ?

Script.rc attached ... (the last line generates the rror).



LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_UK

IDD_warn_dpanel DIALOG 0, 0, 385, 81

STYLE DS_MODALFRAME | DS_SETFONT | WS_CAPTION | WS_POPUP | WS_SYSMENU

CAPTION "Warning !"

FONT 8, "MS Sans Serif"

{

DEFPUSHBUTTON "OK", ID_warnok, 328, 54, 50, 14

LTEXT "Static", IDC_warn_lab1, 24, 17, 323, 33, SS_LEFT

}

LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_UK

IDD_welc_dpanel DIALOG 0, 0, 232, 101

STYLE DS_3DLOOK | DS_CENTER | DS_MODALFRAME | DS_SETFONT | WS_CAPTION | WS_POPUP | WS_SYSMENU

CAPTION "Welcome to your IDP.."

FONT 8, "MS Sans Serif"

{

DEFPUSHBUTTON "OK", IDOK, 16, 73, 50, 14

PUSHBUTTON "Cancel", IDCANCEL, 156, 73, 50, 14

RTEXT "CDSID:", IDC_welc_lab1, 45, 15, 38, 14, SS_RIGHT

EDITTEXT IDC_cdssin, 86, 14, 109, 17, ES_AUTOHSCROLL

RTEXT "Password:", IDC_welc_lab2, 45, 41, 37, 12, SS_RIGHT

EDITTEXT IDC_passin, 85, 38, 109, 18, ES_AUTOHSCROLL | ES_PASSWORD

CONTROL IDB_BITMAP1, IDC_STATIC, STATIC, SS_BITMAP, 17, 36, 27, 20

}

//

// Icon resources

//

LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL

IDI_ICON2 ICON ".\\\\icon_new.ico"

0 Kudos
1 Reply
Jugoslav_Dujic
Valued Contributor II
407 Views
It's not about the resource script, but about contents of the icon file.

See if this article helps.
0 Kudos
Reply