At 04:44 PM 5/16/2004, you wrote:
I'm having a lot of trouble using pdbc 0.9.5 under linux, either compiled for linux or through wine. First of all, it throws syntax errors on examples I give it. I got through that but then databases that I created gave the following error when I tried to load them into pose

Could not install the Palm OS file "out.pdb" because Palm
OS error 0x0203 (dmErrInvalidParam) occurred.

I've even tried taking a database, running it through pdbdec, and then through pdbc. Pdbc throws errors on the data. So, can anybody help me with pdbc?

If not, I would be happy to use any other tool. All I want to do is create a 1MB database that is full of ASCII. I want each record to be about 65536 bytes in size and for the data to be essentially contiguous through the records. Is there an easier Linux or Windows tool to do this?

65536 bytes per record is too large... using 64000 as a limit will work on all devices -- the limit is just below 64K, varying among OS versions.


If that doesn't help, here's a few suggestions.

1) Use 'par' to make a file stream database. That uses 4K chunking, but there's already support in the OS to read and write these like files.

2) Use a tool like 'split' to chunk your ASCII text into 64000-byte chunks, and then use 'par' to assemble that into a PDB file in your own format.

3) 'par' comes with libprc, a library that easily lets you read and write your own PDB files using C/C++.

4) There's a prc/pdb writing module for PHP that could be used for this purpose, if you know that language.

5) Use Perl and the Palm::PDB module from CPAN.

-- Ben Combee, DTS technical lead, PalmSource, Inc.
   Read "Combee on Palm OS" at http://palmos.combee.net/



--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to