Thread overview | |||||
---|---|---|---|---|---|
|
February 20, 2005 icons (resources) in win32 D executable? | ||||
---|---|---|---|---|
| ||||
Is this possible... to link some icons with the executable so it has icon when I see in the explorer. Or (if it is not the same) link other resources like bitmaps or whatever... |
February 20, 2005 Re: icons (resources) in win32 D executable? | ||||
---|---|---|---|---|
| ||||
Posted in reply to bobef | If you have some kind of resource editor that can produce .res files, then you're set. Just create a .def file with the following lines: EXETYPE NT SUBSYSTEM WINDOWS RC resourcefilename.res Then put the name of the .def file on the compiler command line along with all your .d files. I don't know much about Windows resources, but I believe that the first icon it finds will be used as the program icon. Also, you cannot use .rc files - you must use compiled .res files. |
February 20, 2005 Re: icons (resources) in win32 D executable? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jarrett Billingsley | Jarrett Billingsley wrote:
> If you have some kind of resource editor that can produce .res files, then you're set. Just create a .def file with the following lines:
>
> EXETYPE NT
> SUBSYSTEM WINDOWS
> RC resourcefilename.res
>
> Then put the name of the .def file on the compiler command line along with all your .d files. I don't know much about Windows resources, but I believe that the first icon it finds will be used as the program icon.
>
> Also, you cannot use .rc files - you must use compiled .res files.
>
>
I will try that. Thank you.
|
Copyright © 1999-2021 by the D Language Foundation