Still no easy way to set the .exe. icon?

BlitzMax Forums/BlitzMax Programming/Still no easy way to set the .exe. icon?

Chroma(Posted 2008) [#1]
I read somewhere you can Incbin the .ico or something like that. Can someone list all the options we have for setting .exe icons please?


Thareh(Posted 2008) [#2]
You can import an object file (.o file) with the icon included in it. (This is the best way in my opinion)
(http://homepage.ntlworld.com/config/max/appiconguide.htm)

Else you can change the icon with an application like Resource Hacker (I think it's called that atleast).

That's the two methods I know of :P


Chroma(Posted 2008) [#3]
I believe with that method the .o file has to reside in the folder too. I would like to just incbin an .ico file and
be done with it.

I'd like to just do a:
Incbin "myicon.ico"
SetExeIcon("incbin::myicon.ico")


Mark?


Yahfree(Posted 2008) [#4]
This is my method, though it would be really great for mark to create some sort of built in method.

http://blitzbasic.com/Community/posts.php?topic=72899

edit:

And this is great for a easy was to get a .bmp file to a .ico file...

http://blitzbasic.com/codearcs/codearcs.php?code=2141

its in b3d, i'll translate it when i get back.


ziggy(Posted 2008) [#5]
The easiest one is to use BLIde plus, select the ICO file you want, and click "Publish" to compile the EXE with the ICO file :D


tonyg(Posted 2008) [#6]
read somewhere you can Incbin


Probably here where Flameduck corrected himself
What? How is Import (sorry, not incbin) not "built-in" by any stretch of the imagination?




popcade(Posted 2008) [#7]
It can't appear on MaxIDE unless Mark has a cross-platform solution ready, and there's no any sign of that available yet.


Chroma(Posted 2008) [#8]
Found some good info here:
http://www.blitzbasic.com/Community/posts.php?topic=53816

This isn't bad but it's hard to remember all these kludges. Seriously hard.

Compile to an .exe and drag an .ico file into it:


Add this to your code:
?Win32
Import "icon.ico"
?



popcade(Posted 2008) [#9]
Just whipped out related post and made a quick example for Max2D and MaxGUI for non-intrusive way to runtime icon...

Download Here:
http://www.icworx.org/_spc/blitz/bmx_icodrop.rar

All code are NOT mine, hope it'll help you a little bit.


Jesse(Posted 2008) [#10]
link is dead.


popcade(Posted 2008) [#11]
Gah, works now, a stupid typo.

It's less than 30K, won't take too much minutes.