if you want to create a conduit, you need SyncAPI. (you should download the CDK403 from PalmOS)
According to your sample source code, I don't see any problem, except you didn't close the database handle. Meanwhile, the Symbol Scanner API make no association with your dmXXX functions. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
