On Friday, 12 May 2023 at 01:41:10 UTC, John Xu wrote:
I saw c# program's exe, often have an favicon.ico image bound together, which can be dragged to desktop.Can dmd compile an icon image to an exe also?
you can, if i remember correctly create a ``ressource.rc`` file and paste: ``` IDI_ICON1 ICON DISCARDABLE "myicon.ico" ``` then put your ``mycon.ico`` file next to it ``` my_project\ app.d ressource.rc myicon.ico ``` ``` dmd app.d ressource.rc ``` it should create an .exe that has the icon