www.digitalmars.com         C & C++   DMDScript  

c++ - Application Icon from .ICO File

reply 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
parent 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