Recent Posts

Pages: [1] 2 3 4 5 6 7 8 9 10
1
Storage / Re: Adaptec PowerDomain 2940UW files are no longer available :(
« Last post by ssp3 on Today at 10:47:36 AM »
Sure. Why do it in a simple way if you can do it complicated. Let the mickeyratt become a full time programmer, learn about the compression method(s), learn how to debug the damn thing and then, maybe, possibly, pehaps one day that thing will work. But maybe not.  ;D

All that instead of one empty EEPROM chip, soldering iron and about half an hour of work.
2
Ah, thank you joevt, that was really enlightening.  I didn't think to look at it with Resourcerer. 

Yes, the strings can be variable length, that's what I meant when I said the doc says they're Pascal strings, which the Mac OS includes represent as Str255.  So when you say the pad can be used to treat it like a C string, how does that deal with the first part where the string length is coded?  Can we still do this with the struct?

Another option I had was something like this:

Code: [Select]
#include <time.h>

typedef unsigned long uLong;
typedef unsigned short uShort;
typedef struct{
uLong checkSum; // checkSum
long LOC; // location identifier
short version; // ckid version number
short readOnly; // checkout state; 0=modifiable
char branch; // if modifiable & byte not 0, then branch was made on checkout
Boolean modifyReadOnly; // Did user execute "ModifyReadOnly"?
uShort history; //  1 if history present, 0 if not
uShort commentLength; // length of current comment if history is present
time_t checkoutDate; // date and time of checkout
time_t modificationDate; // modification date of file
uLong PIDa; // PID.a
uLong PIDb; // PID.b
short userID; // user ID
short fileID; // file ID
short revisionID; // revision ID
char theRest[1536] // We have to parse this out manually due to pstrings
} CKIDRec, *CKIDPtr, **CKIDHandle;

Then taking CkidRecord.theRest and parsing it out.  Not entirely sure how to do that though... I've taken a few stabs at it and I usually end up crashing the whole machine.  Have a suggestion?

Thank you much!
3
News, Information & Feedback / Re: We're hiring (and have some ideas)!
« Last post by Knezzen on Today at 05:21:23 AM »
So, does anyone feel like writing some condensed articles based on the threads posted here? Would greatly appreciate the help! :)
5
Software / Re: MacTorrent - BitTorrent for Mac OS 9
« Last post by Knezzen on Today at 03:02:02 AM »
Btw, I should use MacTorrent more. :)

Poke a bit at the sources and see if you can make it better ;)
6
Software / Re: MacTorrent - BitTorrent for Mac OS 9
« Last post by Jubadub on Yesterday at 11:35:18 PM »
it turns out true once more: it is important to question anything, including the primary source and myself. ;)

Yes! Questioning is caring! There's no such thing as an actual "Ministry of Truth", as some say. Sometimes we are wrong, sometimes (most of the time) "authority" (Apple in this case) is wrong, sometimes there are lies, deceits and so on, sometimes not. For instance, Apple since Jobs' return, and to this day, loves lying all the time, so this case might just be another instance of that.

I found yet another Apple page the other day with Apple preaching the same wrong info again.

Either Apple mistakenly wrote that stuff, OR purposefully lied so that people would "keep on buying" newer stuff even if for false reasons (which sadly summarizes most of marketing people).

Btw, I should use MacTorrent more. :)
7
Development & Programming / Re: Pascal strings in struct for reading a resource
« Last post by joevt on Yesterday at 10:38:53 PM »
It appears the filler bytes between strings allow the strings to be treated as C strings.

The comment string has a two byte length and is therefore not a pascal string.

Since the ckid is variable length, I would maybe copy only the non-variable part from the resource to CkidRecord (everthing before projectPath).

C in classic Mac OS may have an option to print pascal strings. Is it "%p" instead of "%s"? I forget. That's not going to work for the comment which as a two-byte length.

Since the strings always have a terminating null character, you can treat them as C strings (unless you think someone might try putting a null character inside the string).

If you need to modify a string, you need to remember to update the length. If you update the length, you need to move all the following strings. If you make a string longer, then you need to move all the strings before making it longer.

8
Development & Programming / Re: Pascal strings in struct for reading a resource
« Last post by joevt on Yesterday at 10:36:52 PM »
The Resorcerer template says the strings are variable length, not fixed length.
9
Str255 is defined in MacTypes.h as:

Code: [Select]
typedef unsigned char        Str255[256];

That being said, I based the struct in my first post on the Pascal structure defined in the PDF I referenced.  It definitely has pad bytes, and you can see them in ResEdit too, where there appears to be two ^^'s between each data field.

Still not sure what to do here... should I be able to get this to work with C structures, or should I try and parse through it one character at a time?

Thank you!
10
Software / Re: MacTorrent - BitTorrent for Mac OS 9
« Last post by IIO on Yesterday at 06:21:54 PM »

No, it doesn't: the footnote states "3) Under Mac OS 9.", with a full stop right after saying "9", meaning anything that is not 9 is excluded.


no idea.

if that would be true you couldn´t even copy a DVD oder BD image - i´ve also had audio recordings and videos >2GB since OS 8.1 times.

mabye apple should take more care about who they let write such things.

it turns out true once more: it is important to question anything, including the primary source and myself. ;)
Pages: [1] 2 3 4 5 6 7 8 9 10