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