Adding an icon to FB app
-
- Posts: 545
- Joined: Nov 08, 2005 14:36
Try this:
That's how I do it. Also, might try removing that #define, I don't think it's necessary
Code: Select all
fbc sourcefile.bas resource.rc -s gui
Im now beginning to think that a .rc file should have some kind of associated icon itself? And might be why its not either recognizing it as a special source file, or something like that. As im always greeted with it not being able to open it.
So brings me to ask, when you save the resource once entered into Notepad, with Save As and the option, all files. And then the name of it eg: thisresource.rc . do you in explorer then see an association symbol; or is it just as a notepad file symbol?
If the answer to the above is yes, then do you have any idea on how i can get them to be associated as an rc source file?
Hugest of thanks,
Clyde.
So brings me to ask, when you save the resource once entered into Notepad, with Save As and the option, all files. And then the name of it eg: thisresource.rc . do you in explorer then see an association symbol; or is it just as a notepad file symbol?
If the answer to the above is yes, then do you have any idea on how i can get them to be associated as an rc source file?
Hugest of thanks,
Clyde.
Ahaha, thats brilliant. Working now, greatest.
( btw, big appologies for topic hijacking )
And a tip make sure if your using notepad to create resource files, that it is actually saving them as an .rc document and not as a txt doc. :)
As a concluding question. Once a resouce ie, an exe has been set to the executable. Say if you make changes, do you / me / farmer Giles, then have to compile again with the resource, or is it now set in stone from the first time around?
( btw, big appologies for topic hijacking )
And a tip make sure if your using notepad to create resource files, that it is actually saving them as an .rc document and not as a txt doc. :)
As a concluding question. Once a resouce ie, an exe has been set to the executable. Say if you make changes, do you / me / farmer Giles, then have to compile again with the resource, or is it now set in stone from the first time around?
-
- Posts: 545
- Joined: Nov 08, 2005 14:36
yes. Every time you compile, if you want the icon to show up, you must include the .rc file in the command line, because the .exe file is completely rewritten.Say if you make changes, do you / me / farmer Giles, then have to compile again with the resource, or is it now set in stone from the first time around?
-
- Posts: 73
- Joined: Jan 21, 2006 21:32
- Location: Poland
-
- Posts: 545
- Joined: Nov 08, 2005 14:36
Make sure that the name of your icon in your .rc file is FB_PROGRAM_ICON:
Also, try making your icon with an icon making program.
Code: Select all
FB_PROGRAM_ICON ICON myicon.ico
-
- Posts: 73
- Joined: Jan 21, 2006 21:32
- Location: Poland
ahhh this way....
It was said here....
sorry, I didn't saw it.
It was said here....
sorry, I didn't saw it.
Last edited by BlackWizard on Sep 18, 2006 14:05, edited 1 time in total.