For Windows programming, can I use a PNG file as an icon?
No.
ICO is actually a specialized file format that contains a collection of images with potentially different sizes and color depths. Png is a specific image.
What you can do is create .ico from .png. I found IconMaker convenient for this purpose.
Well, the difference is that they are different file formats :-).
As for using them as icons in MS Windows:
Vista PNG ; Windows .ico. . , , , , PNG ( ), .ico .
Source: https://habr.com/ru/post/1780779/More articles:eBay API - Filter Items by Shopping / Custom Categories - ebaySearch for old .Net librairies - .netThe right way to stop with MPI - fortranSuper slow request ... What have I done wrong? - sqlHow to simulate a bank account in OOP? - c #Супер медленный запрос - ускорился, но не идеально... Пожалуйста, помогите - performanceDoes the key that I use for the collection use to satisfy any requirements? - c #A simple interface for marking study data? - jqueryAn alternative to CoreGraphics? - c ++Application Launch Event Detection - cocoaAll Articles