I tried that, but it doesn't seem to work. are you sure this can generate
files for use with the FileStreaming API?

i ran the following command

par c -a stream test.pdb testdb <type??> ABCD test.txt

to generate test.pdb with the name testdb, of type/creator test,ABCD
with data from the file test.txt..where test.txt

just contains
this is a test
this is line two
EOF

but opening it with the streaming API gives me the error:
"MyApp (unknown version) reports "FileStream.c, Line:2332, invalid data
block signature"

the code i use to generate this error is:

char buffer[20];
FileHand theStream;
theStream = FileOpen(0,"testdb", 'test', 'ABCD', fileModeReadOnly, &err);
StrPrintF(buffer, "err = %d\n",err);
FrmCustomAlert(alDebug, buffer,NULL,NULL);

I know the file is at least a correct pdb file b/c if i open it using the
data manager i don't get an error

LocalID theID = DmFindDatabase(0, "testdb");
StrPrintF(buffer, "localID = %d\n",theID);
FrmCustomAlert(alDebug, buffer, NULL,NULL);

reports that theID is 2, where in the case of error its a zero

Im thinking I'm not telling par to make a file for FileStreaming use, i
passed it the attribute flag
on the command line, but is there something else I'm missing????

I'd really appreciate any help...
thanks,
alex

"Chagla" <[EMAIL PROTECTED]> wrote in message
news:35002@palm-dev-forum...
>
> Hi,
>
> This is the first time I'm answering to a question. I was always asking
> questions here:)
> You can download the par utility from
> http://www.djw.org/product/palm/par/ that will do the job for you.
> Remember to take care of the Little endian/Big Endian problem if u want to
> move the file from Windows to Palm.
>
> Chagla
>
> ----- Original Message -----
> From: "Alex Roetter" <[EMAIL PROTECTED]>
> Newsgroups: palm-dev-forum
> To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> Sent: Monday, January 08, 2001 7:17 AM
> Subject: Creating .pdb files on Windows
>
>
> > Hi there,
> >
> > I have some data on a PC that I'd like to make accessible to the Palm
> > through the File Streaming API through a .pdb file. Since I have the
Specs
> > for the pdb file format I suppose I could write a program that generates
> > .pdb files on the PC side (and figure out how the file streaming API is
> > implemented in terms of a Palm Database), but that seems like an awful
lot
> > of work. Does anyone know a quick way to take a file on the PC file and
> > generate a .pdb file that a Palm can open using File Streaming and see
the
> > original PC file?
> >
> > If you could also email me directly in the reply I'd greatly appreciate
it
> >
> > Thanks,
> > Alex
> >
> >
> >
> > --
> > For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/tech/support/forums/
> >
>
>
>



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

Reply via email to