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++ - Application Icon from .ICO File

↑ ↓ ← Mark Evans <mevans zyvex.com> writes:
I'm using the command-line tools to build a Win16 console app with the WINIO
library.  I have a resource script (.rc) and a binary icon (.ico) file.  I want
to know what directive to use in the 
resource script and/or RCC command line to include the .ICO file as the
application icon.

Thanks,

Mark
May 25 2001
↑ ↓ → Mark Evans <mevans zyvex.com> writes:
Answering my own question, this seems to work in the .RC script:

#pragma res16
APPICON         ICON        ParkPlug.ICO
winio_icon      ICON        ParkPlug.ICO

where ParkPlug.ICO is my binary .ICO file.

Resource scripting languages are always under-documented.

Mark

On Fri, 25 May 2001 18:11:45 GMT, Mark Evans <mevans zyvex.com> wrote:
 I'm using the command-line tools to build a Win16 console app with the WINIO
library.  I have a resource script (.rc) and a binary icon (.ico) file.  I want
to know what directive to use in the 
 resource script and/or RCC command line to include the .ICO file as the
application icon.
 
 Thanks,
 
 Mark
 
 

May 25 2001