Thread overview
icons (resources) in win32 D executable?
Feb 20, 2005
bobef
Feb 20, 2005
bobef
February 20, 2005
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
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
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.