c++.windows.32-bits - Help with writing/saving icons using win32 SDK or MFC
Hello, I'm throwing this question out and hoping for a catch. I'm writing an icon extractor. Everything works fine but for some reason, possibly my stubbornness, I can not find a way to write an icon (from a dll, exe resource) to a local .ico file. Has anyone here tried such a thing? I've looked into search engines, dev sites, etc and have found no clue as to where to begin. Is it possible to copy a handle from an icon (or use GDI in some way) to write to an LPSTREAM or such? Any feedback will be welcome and thanked! -- Regards, Gregory Peet Fellow Digital Martian STLSoft FAQ: http://stlsoft.gregpeet.com
Jun 23 2003
As far as I know Windows doesn't provide any functions to save bitmaps, icons or cursors, only functions to load them or create them in memory. Though the ICO file format is quite simple and you shouldn't have too many troubles implementing a simple save function. You can find a document on .ico files on wotsit.org http://www.wotsit.org/ Regards, Remko van der Vossen "Greg Peet" <admin gregpeet.com> wrote in message news:bd8f57$9rj$1 digitaldaemon.com...Hello, I'm throwing this question out and hoping for a catch. I'm writing an icon extractor. Everything works fine but for some reason, possibly my stubbornness, I can not find a way to write an icon (from adll,exe resource) to a local .ico file. Has anyone here tried such a thing?I'velooked into search engines, dev sites, etc and have found no clue as to where to begin. Is it possible to copy a handle from an icon (or use GDIinsome way) to write to an LPSTREAM or such? Any feedback will be welcomeandthanked! -- Regards, Gregory Peet Fellow Digital Martian STLSoft FAQ: http://stlsoft.gregpeet.com
Jun 24 2003
Please read: Windows Developer's Journal, September 1997. "The World's Smallest Win32 Icon Editor" by Petter Hesselberg. http://www.wdj.com/wdm/articles/1997/9709/ Kar G Lim. "Greg Peet" <admin gregpeet.com> wrote in message news:bd8f57$9rj$1 digitaldaemon.com...Hello, I'm throwing this question out and hoping for a catch. I'm writing an icon extractor. Everything works fine but for some reason, possibly my stubbornness, I can not find a way to write an icon (from a dll, exe resource) to a local .ico file. Has anyone here tried such a thing? I've looked into search engines, dev sites, etc and have found no clue as to where to begin. Is it possible to copy a handle from an icon (or use GDI in some way) to write to an LPSTREAM or such? Any feedback will be welcome and thanked! -- Regards, Gregory Peet Fellow Digital Martian STLSoft FAQ: http://stlsoft.gregpeet.com
Jun 24 2003
Thanks both of you! "Greg Peet" <admin gregpeet.com> wrote in message news:bd8f57$9rj$1 digitaldaemon.com...Hello, I'm throwing this question out and hoping for a catch. I'm writing an icon extractor. Everything works fine but for some reason, possibly my stubbornness, I can not find a way to write an icon (from adll,exe resource) to a local .ico file. Has anyone here tried such a thing?I'velooked into search engines, dev sites, etc and have found no clue as to where to begin. Is it possible to copy a handle from an icon (or use GDIinsome way) to write to an LPSTREAM or such? Any feedback will be welcomeandthanked! -- Regards, Gregory Peet Fellow Digital Martian STLSoft FAQ: http://stlsoft.gregpeet.com
Jun 24 2003