Re: ICON Solutions!
- Posted by Brian Jackson <bjackson at 2FARGON.HYPERMART.NET> Nov 17, 1999
- 510 views
Hi all, I have to agree with Bernie on this one. I believe that when you start fooling around with the PE(EXE) file format, "bad things" will happen. I think that running a program by using "exw euprog.exw" would work fine using a modifiled exw.exe file, but try BINDing it, and you've got a problem, because exw.exe will have the wrong address for the start of the shrouded source code (unless Rob intentionally coded the interpreter differently). Just to point it out, I'm sure that RDS forbids modifying EX.EXE or EXW.EXE in any way as part of the license agreement. I would assume that the same goes for modifying the interpreter section of a bound .EXE file. Short story - I don't think you can distribute a modified version of the interpreter without RDS's permission. As a request for RDS - I agree that having a custom icon in a bound EU program would be a big plus. Now that I am a free-lance programmer, I have plenty of opportunities to write profressional programs in Euphoria, and one of the things that a couple of clients have asked is for me to create a customized icon for their programs. For now, I've done it with a .PIF file, but here's my suggestion: Embed some specific icon (or multiple icons if you REALLY want to indulge me!) in the EXW and EX interpreters. Then allow us to use an icon editor (AX-ICONS, IconForge, etc.) to change the icons to whatever we want in bound files. I would also suggest that you only embed icons in the registered versions of the interpreters, as yet another incentive to upgrade. It ought to be relatively easy to implement (dare I hope for v2.2?!), and would be one more way for Euphoria to show off! Let me know what you think! Brian On Wed, 17 Nov 1999 10:20:37 -0500, Bernie Ryan <bwryan at PCOM.NET> wrote: >Brian > > I think the problem is not that simple. > > When a resource ( icon ) is added to an exe it is append to the end of > the exe file then a offset to the resource location is inserted in the > exe header. If a icon is added to the exw.exe file it is append ok but > if you bind any files to the exw.exe then the resource file will be > sandwiched in between the exw.exe and the bound files and I think that > is a major problem when you try to change the icon. > > Bernie