Re: icon embedding
- Posted by David Cuny <dcuny at LANSET.COM> Jun 16, 1999
- 413 views
"Molasses" wrote: >Anyone know how to embed a Windows icon in an .exe file? I'm assuming you mean a Euphoria .exe file. The short answer is that you can't embed resources into Euphoria programs. It *is* possible to create resources (like icons, cursors, dialog boxes, and so on) with a resource editor, and ship the resource file along with your application. You can then direct that the resources be loaded from that file when your code runs. Obviously, this isn't "embedding" the icon into the .exe. The other route to take is to build the data structure from scratch from within your program, instead of using a resource editor. You can then point Windows to that chunk of memory. This is the approach that Win32Lib and Llama take - it's a bit more work, but you end up with everything contained within the executable. Again, not really "embedding", since you are constructing the icon by hand, rather than sticking a pre-created resource into your code somehow. I haven't actually built any icons from scratch - it looks tedious, but doable. -- David Cuny