www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - icons (resources) in win32 D executable?

reply bobef <bobef paintballforce.com> writes:
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
parent reply "Jarrett Billingsley" <kb3ctd2 yahoo.com> writes:
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
parent bobef <bobef paintballforce.com> writes:
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