News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Problem with .ico

Started by Villuy, January 13, 2025, 07:04:11 PM

Previous topic - Next topic

Villuy

I try to add icon to .res file:

https://www.iconfinder.com/icons/17558/document_icon

MASM gives an error:

error RC2176: old DIB in MyIcon.ico; pass it through SDKPAINT

Some files are ok, but most are like this. Apparently MASM not understands modern .ico file formats.

jj2007

They look nice, no doubt, but they are in *.png format...

Villuy

#2
Quote from: jj2007 on January 13, 2025, 09:18:35 PMThey look nice, no doubt, but they are in *.png format...

There are two buttons: | PNG | Other |

This author has whole gallery of masterpieces, yes:

https://www.iconfinder.com/iconsets/packyuuyake

Villuy

I have bypassed problem by using rc.exe from Microsoft SDK.

HSE

Hi Villuy,

Quote from: Villuy on January 13, 2025, 07:04:11 PMMASM gives an error:

Look like RC.exe error. What version you have? (and what ml.exe?)  :biggrin: That was.

Quote from: jj2007 on January 13, 2025, 09:18:35 PMThey look nice, no doubt, but they are in *.png format...

Very interesting, I don't know that. New .ico versions can be .png inside, with a little diferent file header  :thumbsup:

HSE




Equations in Assembly: SmplMath