Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Changing .EXE icon
#11
Program icons are embedded. Use DevC++ to compile it, there is an option to embed a custom icon, I'm not sure where it is, but I'm sure that the help file will tell you.

Or like Skyler said, use a special program.
f you play a Microsoft CD backwards you can hear demonic voices. The scary part is that if you play it forwards it installs Windows.
Reply
#12
Yeah, I downloaded some programs that said they could do it. The only one that came close was one that actually imbedded it into the file (like you said...) but I tried to imbed a 32x32x256 icon into it and it said "WRONG FORMAT! Icon must be 0x0x255" which, of course, makes absolutely no sense at all.

I ended up creating a workaround and made an installer program using advanced installer that puts a shortcut on the desktop and in the start menu... which, of course, are easy to make icons work for. So it's pretty much over and done with.

On a side note, though... is there a way to imbed an icon into a program compiled with FB?
ovaProgramming.

One night I had a dream where I was breaking balls. The next morning, BALLSBREAKER was born.

Quote: Excellent. Now you can have things without paying for them.

BALLSBREAKER 2
~-_-Status Report-_-~
Engine: 94%
Graphics: 95%
Sound: 100%
A Severe Error has crippled BB2 for the time being... I have to figure it out, but until then you won't see much of it Sad.
-----------------------------
Reply
#13
Quote:Yeah, I downloaded some programs that said they could do it. The only one that came close was one that actually imbedded it into the file (like you said...) but I tried to imbed a 32x32x256 icon into it and it said "WRONG FORMAT! Icon must be 0x0x255" which, of course, makes absolutely no sense at all.

I ended up creating a workaround and made an installer program using advanced installer that puts a shortcut on the desktop and in the start menu... which, of course, are easy to make icons work for. So it's pretty much over and done with.

On a side note, though... is there a way to imbed an icon into a program compiled with FB?
You use resource files to embed icons and stuff. If FreeBASIC can use resource files just like C and C++, then you can embed icons.
[Image: 1403.png]
^ Infrosoft
http://www.thecodeyouneed.us.to/ - A wiki of source code, mostly in PHP and FreeBASIC
http://www.osadvocacy.uk.to/ - Your opinion matters no matter your OS
Reply
#14
Quote:On a side note, though... is there a way to imbed an icon into a program compiled with FB?
Yes.
Reply
#15
Well, what is it?
In the beginning, there is darkness – the emptiness of a matrix waiting for the light. Then a single photon flares into existence. Then another. Soon, thousands more. Optronic pathways connect, subroutines emerge from the chaos, and a holographic consciousness is born." -The Doctor
Reply
#16
Quote:Well, what is it?
It's the search toolbar on the forums.
Reply
#17
Ahh... I see... you want me to show some initiative and go look for myself. Well, I don't need that information at the moment, so I won't.
In the beginning, there is darkness – the emptiness of a matrix waiting for the light. Then a single photon flares into existence. Then another. Soon, thousands more. Optronic pathways connect, subroutines emerge from the chaos, and a holographic consciousness is born." -The Doctor
Reply
#18
You include a resource file into the application. It's not hard.

As for the "Change Icon" thing, that only works for shortcuts.
\__/)
(='.'=) Copy bunny into your signature to
(")_(") help him gain world domination.
Reply
#19
yeah you need to compile your resource iirc with something like... gorc.exe on windows. then you just link it in the exe (i believe it has to be the *first* object (.o) files linked, but i might be wrong on that.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)