[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New Complete Pascal example (event driven programming)



limtc <thyechean@gmail.com> wrote:

> Don't need to do BXY anymore?

Not really.

> I thought SHK is binary?

It is.

ShrinkIt (.shk) files are archive files, similar to zip files on the PC.
You can put multiple files into a ShrinkIt file, and ShrinkIt will retain
the directory structure, filetypes, auxtypes, and other file information
relavant to an Apple II for each file.  It will also compress the files
if so desired.

Binary II (.bxy) files are filetype wrappers.  Since most filesystems used
on an Apple II store information about the file (such as filetype and aux-
type) in the directory entry of that file, and most non-Apple filesystems
don't, this information can be lost when hosting Apple II files on non-
Apple filesystems.  A Binary II wrapper stores this directory information
inside the file itself.  It is a binary file, if I recall correctly (hence
the name Binary II).

The text file you may remember using years ago was a BinSCII file.  BinSCII
converts binary files into text files so they can be transferred via email
or usenet.  We used this back in the day when comp.binaries.apple2 was the
primary distribution of Apple II shareware because many usenet servers 
and nearly all mail-to-news gateways required 7-bit ASCII and utterly
destroyed any 8-bit binary files sent through them.  It's the Apple II
equivalent of UUencode.

If you're hosting files on a webserver such as the Virtual GS Programming
site, the files are being downloaded via http (or possibly ftp on some
other sites).  Both http and ftp support 8-bit binary transfers, hence
BinSCII is not required.

Since you're putting your files inside a ShrinkIt archive, and ShrinkIt
preserves the filetype and auxtype information of the files inside it,
Binary II is not required.  There's nothing wrong with doing it if you
choose, but all it does is record the filetype and auxtype of the archive,
not the files inside (filetype $E0 and auxtype $8002, IIRC).  ShrinkIt
doesn't require archives to have their proper filetype and auxtype.
(I verified this by changing the filetype of the Mandelbrot GS archive
to "BIN" and the auxtype to "$0000" with File-A-Trix.  Both Balloon and
ShrinkIt GS recognized the archive as a NuFX archive just fine.)  You
just need to make sure the file extension (".shk") is correct.  Having
a filetype/auxtype and a file extension is redundant.

> Can you try the BXY file in http://virtualgs.larwe.com/Virtual_GS_Programming/Mandelbrot_GS.html
> and let me know whether it works?

I did, but this bug report is going to require a separate post.  :-)

Mike