Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing icon of FORTRAN .exe

Status
Not open for further replies.

gmcke1

Programmer
Aug 22, 2011
2
US
Hello all,

I have been investigating this for a long time to no avail. I cannot figure out how to change the default picture icon of the compiled .exe FORTRAN program. For example, attached is a picture of my taskbar. There are multiple white pages within. Those white pages are different FORTRAN programs. I want those white pages to be different pictures so I know which program is which. Has anyone ever done this?

------------------------------------------------
Glenn Mckeever
Laboratory Technician
Sorrento Lactalis Group
33 Irving Street
Lockport, NY 14094
Phone: (716) 628-5304
------------------------------------------------
 

What you ask is off topic here, because it has nothing to do with Fortran programming language.

But, when you right click on the "white page" and select Properties than isn't there a Change Icon button?
 
I thought maybe there could be a compiling syntax that would add the picture to the file. You know how you can rename the file with the -o command? Something like that. Apologies

------------------------------------------------
Glenn Mckeever
Laboratory Technician
Sorrento Lactalis Group
33 Irving Street
Lockport, NY 14094
Phone: (716) 628-5304
------------------------------------------------
 
Re you working in a Windows-enviroment ?
If yes, you can assign an icon to your prog through some windows routine.

If this would be of interest for you, I will dig it up from where I last used it.

Norbert


The optimist believes we live in the best of all possible worlds - the pessimist fears this might be true.
 
Just do a google for "icon binding to executable" or something like that...there are even some resource tools that allow you to bind icons (different sizes) to the executable.
 
Hi gmcke1

If you are building a Windows program, it is enough to put this into the resouce file (xxxx.RC), if I remember correctly:

Icon1 ICON Icon1.ICO
Icon2 ICON Icon2.ICO
Icon3 ICON Icon3.ICO
Icon4 ICON Icon4.ICO

Then all these icons will be displayed under Properties ... Change Icon ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top