digitalmars.D - icons (resources) in win32 D executable?
- bobef (3/3) Feb 20 2005 Is this possible... to link some icons with the executable so it has
- Jarrett Billingsley (9/9) Feb 20 2005 If you have some kind of resource editor that can produce .res files, th...
- bobef (2/16) Feb 20 2005 I will try that. Thank you.
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...
Feb 20 2005
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.
Feb 20 2005
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.
Feb 20 2005