Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Icon in console app

4 views
Skip to first unread message

Paul Dowd

unread,
Jul 22, 2002, 7:51:30 PM7/22/02
to
Hi all,

How can I change the icon in a console app. I have edited the MAINICON in
the resource file but it still appears as the Borland icon both in explorer
and the command window title bar. Application->Icon->LoadFromResourceName
does not seem to work either.
NB: using BCB6 pro

Paul


John G Harris

unread,
Jul 23, 2002, 2:51:45 PM7/23/02
to
In article <3d3c9a83$1_1@dnews>, Paul Dowd
<paul...@seisqc.freeserve.co.uk> writes

Use the Image Editor to create a new .res file containing your icon.
Make sure the file name is different from the automatically created .res
file. E.g. icons.res (provided your project isn't called icons).

Now add the new .res file to the project. The icon will be included in
the exe file when you recompile and relink.

Windows will pick your new icon provided its name is alphabetically less
than MAINICON. ICONMAIN will do nicely.

John
--
John Harris
mailto:jo...@jgharris.demon.co.uk

0 new messages