BBS: Inland Empire Archive Date: 05-09-92 (19:25) Number: 149 From: ZACK JONES Refer#: NONE To: CORIDON HENSHAW Recvd: NO Subj: Squish Formatted Echos fr Conf: (2) Quik_Bas
> Does anyone know the format of squish message bases? An example
> reader would be nice.
Here's some code I captured a while back:
(215) Tue 7 Apr 92 20:55
By: Francois Roy
To: Harvey Parisien
Re: Squish Bases in QB?
St:
<80
----
>On (06 Apr 92) Francois Roy wrote to Gene Buckle...
FR> So far, I have only managed to READ the Squish bases; I don't feel
FR> confident enough yet to go and ENTER messages in there...
>Very interested in your approach Francois. Will you post it?
Ok, first, here are the structures (at least what I could make of them: there
are more #define's and #ifdef's than useful info in that C stuff).
TYPE SQIDX ' .SQI file: one of these per message (12 bytes)
OFFST AS LONG
UMSGID AS LONG
HASH AS LONG
END TYPE
TYPE SQBASE ' .SQD database header (256 bytes): 1 per .SQD file
SLEN AS INTEGER
RSVD1 AS INTEGER
NUMMSG AS LONG ' No of msgs in area
HIMSG AS LONG ' Highest msg number (same as NUMMSG)
SKIPMSG AS LONG ' # of msgs to protect from autoKill
HIWATER AS LONG ' Highwatermark
UID AS LONG ' # of next UMSGID to use
BASEID AS STRING * 80' Name (incl path) of this message base
FBEGIN AS LONG ' Offset to 1st frame
FLAST AS LONG ' Offset to last frame
FFBEGIN AS LONG ' Offset to 1st free frame
FFLAST AS LONG ' Offset to last free frame
FEND AS LONG ' Offset to end of file
MAXMSGS AS LONG ' # of msgs to keep
MAXDAYS AS INTEGER ' # of days to keep msgs for
SZSQHDR AS INTEGER ' Size of SQHDR (32 bytes)
END TYPE
TYPE SQHDR
ID AS LONG
NEXTF AS LONG
PREVF AS LONG
FLEN AS LONG
MSGLEN AS LONG
CLEN AS LONG
FTYP AS INTEGER
RSVD AS INTEGER
END TYPE
Hope this helps!
Take Care,
Zack Jones
---
* Origin: Zack's Shack (1:387/905.1)

Books at Amazon:
Back to BASIC: The History, Corruption, and Future of the Language
Hackers: Heroes of the Computer Revolution (including Tiny BASIC)
Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution
The Advent of the Algorithm: The Idea that Rules the World
Moths in the Machine: The Power and Perils of Programming
Mastering Visual Basic .NET