On 2006-11-27, Lynn Allan <[EMAIL PROTECTED]> wrote:
> Ton,
>
> Thanks for the suggestion ... making progress, but still a ways to go.
>
> I converted the unix program to Windows vc7.1. Vc7.1 doesn't have getopt(),
> so I made my best guess at "hard-wiring" the options to:
> - binary_opt = false;
> - compress_opt = false;
> - no_check_opt = true;
> - verbose_opt = true;
> argv[1] = test.vpl  (31 line text file)
> argv[2] = test.pdb
>
> I used _byteswap_ushort and _byteswap_ulong instead of ntohs, ntohl, htons,
> and htonl.
>
> It seemed to sort of work, but 
> pal h test.pdb 
> reports 2 records.
>
> Suggestions appreciated. Are different options appropriate?
> Am I leaving something out or missing a step?

I just compiled txt2pdbdoc under Cygwin (no changes needed).
And looking into the source its conversion just chops the input file in 
blocks of 4096 bytes (max 4096 bytes per record).
Hence your result of 2 records.
In the meantime I saw you got a modified par version working, so 
depending on how you want to organize your final pdb (optimized for 
searching on verses ?) this custom par version could be OK.
To obtain the same result with txt2pdbdoc also some source code changes 
are needed.

Ton

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

Reply via email to