Mail Archives: djgpp/1995/10/13/14:06:17
I had the same problem some time ago, and solved it this way:
i wrote a program that appended the data file to the exe, and then wrote
the starting point of the data file at the end.
So the program would have to read its last 4 bytes and the read from the
nth-byte until 4 bytes before the end.
In Pascal (that's what i used), it was no problem (the data wouldn't load
into memory), or if it loaded, at least it wasn't allocated.
I don't think the v2 betax have problems either, but maybe v1 would.
I don't really wanna try it, so....
Anyway 200k isn't that much today.
There is also a program that can turn any file into a .h file...
declaring it as a char array, but i can't remember the name. In DJGPP
there wouldn't be any size limits.
I used that one with a 2 Mb file, and worked.
Roberto Alsina
ralsina AT unl DOT edu DOT ar
- Raw text -