Posts: 357
Threads: 118
Joined: Oct 2004
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.
Posts: 938
Threads: 104
Joined: Dec 2002
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
.
-----------------------------
Posts: 495
Threads: 29
Joined: Sep 2005
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.
Posts: 476
Threads: 35
Joined: May 2006
Quote:On a side note, though... is there a way to imbed an icon into a program compiled with FB?
Yes.
Posts: 421
Threads: 22
Joined: Oct 2005
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
Posts: 476
Threads: 35
Joined: May 2006
Quote:Well, what is it?
It's the search toolbar on the forums.
Posts: 421
Threads: 22
Joined: Oct 2005
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
Posts: 719
Threads: 42
Joined: Oct 2005
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.
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.