O'Reilly logo

Palm Programming: The Developer's Guide by Julie McKeehan, Neil Rhodes

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Generic Conduit

Generic Conduit is the other approach to creating a conduit that handles two-way syncing. It is based on a new set of classes (currently unsupported) that Palm Computing has recently started distributing. Having seen all that is involved in creating a conduit based on the basemon and basetabl classes, you can understand why Palm Computing wanted to offer a simpler solution to developers. Generic Conduit is one of Palm’s solutions to this problem—these classes are intended to make it easier to get a conduit up and running.

Advantages of Using Generic Conduit

There are some powerfully persuasive advantages to basing a conduit on these new classes:

In some cases, you don’t need to write any code

Generic Conduit contains everything, including ConfigureConduit, GetConduitName, etc. If you compile and register it, it’ll be happy to two-way sync your Palm database to a file on the desktop. This approach requires the use of its own file format, however. If you don’t like that format, you need to customize the Generic Conduit classes to some extent.

If you do have to write code, it might not be much

The number of classes and the number of methods are much less daunting than those found in the basemon and basetabl classes.

All the source code is available

The entire source code is provided; you don’t have to rely on any DLLs (basemon uses Tables.DLL for the CBaseTable class and MFC for serialization). Further, if you so desire, you can change any or all of the source code.

There’s ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required