I've seen some questions about setting custom icon for console apps in BCB. This may seem a bit tricky, since by default "custom icon" selection field in project options is grayed out. I know at least two ways to set custom icon in such projects :
1. Compile the code with default icon, then use [link http://www.users.on.net/johnson/resourcehacker/]Resource Hacker[/link] and replace default icon with one of your choice.
2. Do it programmer's way:
- create myres.rc file containing following line : 1 ICON "myiconfile.ico"
- compile myres.rc to myres.res by opening it in builder and using Project -> Compile unit.
- remove from your project default .res file (Project1.res maybe?) file and add myres.res (Project -> Add/Remove to/from project)
- build your application
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.