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
  • Can dmd compile ... John Xu via Digitalmars-d-learn
    • Re: Can dmd... ryuukk_ via Digitalmars-d-learn
      • Re: Can... John Xu via Digitalmars-d-learn
        • Re:... John Xu via Digitalmars-d-learn
          • ... John Xu via Digitalmars-d-learn
            • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
              • ... John Xu via Digitalmars-d-learn
                • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
                • ... John Xu via Digitalmars-d-learn
                • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
                • ... John Xu via Digitalmars-d-learn
                • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn

Reply via email to