Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
From: Dario Alcocer <alcocer@helixdigital.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <15179.2493.701585.417464@coyote.priv.helixdigital.com>
Date: Tue, 10 Jul 2001 06:57:17 -0700
To: "Michael Scheibler" <michael.scheibler@onevision.de>
Cc: cygwin@cygwin.com
Subject: Re: application icons
In-Reply-To: <038f01c10946$9cdeeaa0$6d07a8c0@miro>
References: <030e01c1093b$0d089030$6d07a8c0@miro>
	<15179.1099.799991.279912@coyote.priv.helixdigital.com>
	<038f01c10946$9cdeeaa0$6d07a8c0@miro>
X-Mailer: VM 6.76 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid

>>>>> "Michael" == Michael Scheibler <michael.scheibler@onevision.de> writes:

    Michael> Well, actually I wanted to know how to link an .exe with
    Michael> an icon.  I tried this:

    Michael> echo "iconid icon file.ico" | windres -O coff -o file.o
    Michael> gcc .... file.o -o binary.exe

    Michael> What am I doing wrong?

Not sure, but why don't you take a look at the Tcl/Tk sources?  I'm
pretty sure they link in icons for cygtclsh80.exe and cygwish80.exe
(at least, the programs show an icon other than the ugly default one.)
The makefile should offer some clues on how to link an icon in.
Another good program to look at is the Setup application.  The sources
for it are in either 'cygwin' or 'common' (I don't remember at the
moment.)  The Cygwin setup program would show you how to link a
straight Win32 application (i.e. cygwin.dll isn't linked to.)

The sources for tcltk are available at any Cygwin mirror.  For the
list of mirrors, check at http://www.cygwin.com.

-- 
Dario Alcocer -- Sr. Software Developer, Helix Digital Inc.
alcocer@helixdigital.com -- http://www.helixdigital.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

