Mail Archives: djgpp/2004/02/07/09:58:46
> no, it's for the potential user or email-friend who has got the .exe
> from you and now wants to see its sourcecode.
So include a command line option to print the includes source.
> I have many programs with text attached and never observed any
> problems.
DJGPP programs?
> I assume that the attached text isn't loaded, when the program is
> executed. DOS/Windows looks for the length of the program in the
> .exe header and then only loads to RAM the number of bytes specified
> there, and ignores the rest.
Right, that's 2048 bytes for all djgpp programs.
> So there can only be problems, if the program opens the .exe files
> itself, (like my sourcecode-printing routine does) e.g. for
> computing a checksum.
It does. That's how ALL djgpp programs work. DJGPP programs are
*already* a program with data attached to it. So, you can't do what
you want with DJGPP.
- Raw text -