The PC is little endian whereas the Mac is big endian like the PalmPilot.
You probably need to reorder your bytes.

Scott

----- Original Message -----
From: "Thomas Ward" <[EMAIL PROTECTED]>
To: "Palm Developers Forum (E-mail)" <[EMAIL PROTECTED]>
Sent: Saturday, January 01, 2000 9:33 PM
Subject: Mac PDB format


> Hi Everyone,
>
> Hope you all had a good New Year's. I have some code that runs under
windows
> and generates a .PDB file. Today, I copied the code over to a Mac,
> recompiled and ran it. It successfully created a file that is the same
size
> (in bytes) as it is on my PC. However, the emulator won't load it. It
says:
>
> Due to a database error, the selected application could not be loaded!
>
> I downloaded another .PDB file from PalmGear and loaded it just fine, so I
> know the emulator is working OK. I went into ResEdit and did a Get Info on
> the one that worked correctly, and it had the Type as "TEXT" and the
Creator
> as "ttxt". I used ResEdit to set my .PDB file's Type and Creator to the
same
> values, thinking that I had figured out the problem. However, it STILL
> wouldn't load the file.
>
> Does anybody know of anything you have to do different when creating a PDB
> file on the Mac instead of on the PC?
>
> Thanks in advance,
>
> Tom Ward
>
>

Reply via email to