Can dmd compile a favicon.ico to exe file ?
ryuukk_
ryuukk.dev at gmail.com
Fri May 12 02:09:17 UTC 2023
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
More information about the Digitalmars-d-learn
mailing list