www.digitalmars.com         C & C++   DMDScript  

c++ - Icon

reply "Janan Hung" <janan pacific.net.hk> writes:
I am a newbie in dmc. I want to ask how can I add an icon to an application?
_________________________________________________________________
Janan Hung's World: http://www.janan.org/
Jul 11 2003
parent reply "Matthew Wilson" <matthew stlsoft.org> writes:
Do you have a resource script for you project?

If so, you can add an icon, say "myicon.ico" to it by inserting the
following line into the resource script:


"MyIcon"             ICON    DISCARDABLE     "myicon.ico"


More usually, however, one would use a resource identifier - usually defined
in resource.h - rather than a string to identify the icon, as in

// resource.h

#define    IDI_MYICON        101

// myproject.rc

IDI_MYICON             ICON    DISCARDABLE     "myicon.ico"



"Janan Hung" <janan pacific.net.hk> wrote in message
news:benoge$2tr0$1 digitaldaemon.com...
 I am a newbie in dmc. I want to ask how can I add an icon to an
application?
 _________________________________________________________________
 Janan Hung's World: http://www.janan.org/
Jul 11 2003
parent "Janan Hung" <janan pacific.net.hk> writes:
 Do you have a resource script for you project?
Oh! I don't know resource script. Can you give me a hint? I use the following statement to compile my program: dmc abc.c def.lib Can you tell me how can I use resource script? _________________________________________________________________ Janan Hung's World: http://www.janan.org/
Jul 11 2003