PalmDatabaseInterface

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

PalmDatabaseInterface

marco-2
Hi,

i´ve installed the PalmDatabaseInterface.
I have a problem reading a database, for example a date book from a
PALM. If i read the entries of the PDB (PilotRecords), and look at the
data with data asString, i only get a strange String. It works for the
memo pad, but not for the date book.
Has anyone experience with the interface?

Cheers
Marco


Reply | Threaded
Open this post in threaded view
|

Re: PalmDatabaseInterface

Martin Rubi
> i´ve installed the PalmDatabaseInterface.

What interface is this ? Is it a COM object you are using from Dolphin ?

>I have a problem reading a database, for example a date book from a
>PALM. If i read the entries of the PDB (PilotRecords), and look at the
>data with data asString, i only get a strange String. It works for the
>memo pad, but not for the date book.

This is palm related, not Dolphin: palm applications usually store its
records in palm databases as c structs, not as text. So probably you are
inspecting an arbitrary array of bytes as if it were a null terminated
string. Memopad records probably are just that (null terminated strings),
but other palm databases are not. If you want to make sense out of those
bytes, you will have to know the c struct. You may be tempted to create an
ExternalStruct wrapper for it, but be aware that palm has a different byte
ordering and aligment. But you can create your own ScalarField subclasses
(something like PalmInt16, PalmUInt16, etc) and then it would be all right
(I did something similar a long time ago, but it was one of my first attemps
to use smalltalk, and well, the resulting framework was quite messy).

>Has anyone experience with the interface?

Could you give a reference to it ?

regards
martin


Reply | Threaded
Open this post in threaded view
|

Re: PalmDatabaseInterface

marco-2
Martin,

i got the interface from the PocketSmalltalk user group, located here
http://groups.yahoo.com/group/pocketstug/. Take a look at the files
section, there you can find the package PalmDatabase-DolphinST.zip.

You said, you did something similar a long time ago. Do you have some
examples for me?

Cheers
Marco