www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - Icon

↑ ↓ ← "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
↑ ↓ "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

 _________________________________________________________________
 Janan Hung's World: http://www.janan.org/

Jul 11 2003
↑ ↓ → "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