Sorry for the question, but various searches pulled up no useful information. I have a handle to an Icon. The Icon is friendly. I want to keep this write this Icon out to a file for future reference. How do I read/write this sort of thing?
Posted on 2001-11-20 20:56:09 by lackluster
lackluster,

You may have a look at this program I made. I thing it may answer your question.

Guy
Posted on 2001-11-20 21:51:16 by Guy
Guy,
I tried running your prog, but everytime I try to save the Icon, it crashes. I'm using win2k Pro, perhaps it is not designed for my OS. I haven't really had time to go through the code, or see where the crash occurs, but this is indeed what I'm looking for. This is a great guideline for me to go with. Thanks .
:alright:
Posted on 2001-11-20 22:19:37 by lackluster
You could try my HexEdit on my web site, it will
extract icons, cursors, and bitmaps and save them
if you wish.

Ewayne
Posted on 2001-11-21 12:38:32 by Ewayne
try GeticonInfo
it retreives all data from the handle
you can save the data into an .ico file.
Posted on 2001-11-22 05:48:05 by beaster
Thanks Ewayne, beaster.

I did indeed have a look @ your HexEdit prog, and it does what I'm looking for very well. I am having some trouble following it though. I think mostly because I have little experiance with Images & in addition to that, I'm still a newbie here :). Can anybody point me to a decent article on Icon headers & writing the body of the Icons. Or try to explain it to me? Thanks.
Posted on 2001-11-22 21:15:37 by lackluster
Hi lackluster,

When I wrote the program I knew what I was doing
and I was going to have the capibility to save
the three image types to a different type and
write a tut on Icon, Cursor, and Bitmap file
types, but I got side tracked and never got back
to it. Now when I look at the code I have a hard
time following it too. :(

Ewayne
Posted on 2001-11-22 23:19:20 by Ewayne
A good source for file formats is www.wotsit.org.
You find a description of the icon format here:

http://www.wotsit.org/search.asp?page=2&s=windows
Posted on 2001-11-23 03:40:05 by beaster
A very handy article indeed!
Posted on 2001-11-23 17:15:43 by lackluster