Wed, 18 Jun 1902 08:00:00 GMT
binobj, pkzip, and on-thwe-fly decompression
Ok, I'm about to add TCP/IP support to my turbo vision project (tp7.0/tv2.0). I'm using Peter R. Tattam's tcpo201.zip package for my tcp/ip stack (until I write my own...). Because the driver (tcpdrv.exe @45K disk/95K when resident) is a seperate program, I'd like to do the following, so that I have a single .EXE file when I'm done: 1) compress (pkzip ver 1.0?) TCPDRV.EXE into TCPDRV.ZIP (?) 2) use binobj to turn it into an object module, TCPDRV.OBJ 3) link it into my program, GUI.EXE now, I have the source code to decompress pkzipped files made by pkzip ver 1.0 (from oak.oakland.edu, PASUNZIP.ZIP), but I haven't tried them yet. To save me alot of headache, I'd like to how to extract and decompress TCPDRV.EXE at run-time (during TMyApp.Init, or the first call to open a TCP port), and install it as a tsr. Then when my prog is done I can (in TMyApp.Done) call the TSR a second time with the uninstall option. Has anyone tried anything like the above? Any suggestions? BTW, I'm still looking for a PASCAL source for a tcp stack (would make my life alot easier :) ) The above would also work for people loading .GIF's and other compressed data, as the pascal compiler makes no provisions for compressing resources and data... -- djenk...@umr.edu http://www.umr.edu/~djenkins Gamma Lambda 204 of Pi Kappa Phi http://www.umr.edu/~pikapps "May he go forth in the sunrise boat, May he come to port in the sunset boat, May he go among the imperishable stars, May he journey in the Boat of a Million Years." -Going Forth by Daylight, Theban Recension, 18DYN.
|