Thread overview
Icon
Jul 12, 2003
Janan Hung
Jul 12, 2003
Matthew Wilson
Jul 12, 2003
Janan Hung
July 12, 2003
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/


July 12, 2003
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/
>
>


July 12, 2003
> 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/