From: Earnie B. <ear...@ya...> - 2002-09-25 11:38:08
|
> Alex Vinokur wrote: > > ================================================================ > Windows 2000 Professional > MinGW 2.0.0-2 > GNU gcc version 3.2 (mingw special 20020817-1) > GNU windres 2.13 > GNU Make version 3.79.1, by Richard Stallman and Roland McGrath. > ================================================================ > > Here is a (partial changed) example > from Version 2.0 of theForger's Win32 API Tutorial > http://www.winprog.org/tutorial/ > > I have removed/commented out the following line > IDI_MYICON ICON "menu_one.ico" > in menu_one.rc file. > > However, menu_one.exe keeps on working OK. > Windows voodoo. > So, > 1. Why does menu_one.exe keep on working OK without ico-file? The Win32 OS semantics stores the icon image in some cache file. If you move menu_one.exe without icon to some platform that hasn't even seen it you won't see any icon for the menu item. > 2. What is the ico-file's role ? To display pretty pictures. > 3. Must/should we use ico-file or not ? Depends on your need. > 4. Who creates ico-file ? Someone with an icon editor. > 5. Does usage of ico-file depend on compiler (on something else) ? It depends on you. Earnie. |