View Single Post
Old 01-25-2009, 04:52 PM   #213
Jim Sachs
Developer
 
Jim Sachs's Avatar
 
Join Date: Dec 2000

Location: Southern Oregon
Posts: 9,771
There was another curveball last night when I tried to add the giant Vista icon. An icon image contains several images at different sizes. Windows uses these for different locations -- the tiny 16x16-pixel one is used for the taskbar, the 32x32 version is used for the normal desktop, etc. Well, Vista not only requires a 256x256 icon, but it can't use the normal Run-Length-Encoding compression - it needs to be compressed in the PNG format. OK, so I had to download and learn a new Icon Editing program. But then I find that Visual C++ will not accept an icon in the PNG format, and stops dead with an error message.

The very inconvenient solution is to compile the program with a dummy icon, rename it as an .exe, use a ReplaceIcon utility to surgically replace the dummy icon with the real PNG icon, then rename MA3 as an .scr file.
Jim Sachs
Creator of SereneScreen Aquarium
Jim Sachs is offline   Reply With Quote