new developper needs assistance.. design question

2004-11-08 Thread Luc Raymond
I need to write a palm application which will read news items stored in a file. 
The news file, which will be created by the pc, needs to be copied to the 
handheld at every hotsync.

I dont need to keep the old news, so my goal was to overwrite the news file if 
it exists.

I downloaded the conduit sdk, but I'm not sure how to handle the solution. Do I 
create a pdb (which api?) and use the quickinstall.exe program to upload my pdb 
to the handheld? do I create a conduit and write directly to the handheld 
(which api) .

Any information would be appreciated, this will be my first Palm app, but I'm 
familiar with C/C++.


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


Re: new developper needs assistance.. design question

2004-11-08 Thread Dave Carrigan
On Mon, Nov 08, 2004 at 07:12:29PM -, Luc Raymond wrote:
> I downloaded the conduit sdk, but I'm not sure how to handle the
> solution. Do I create a pdb (which api?) and use the quickinstall.exe
> program to upload my pdb to the handheld? do I create a conduit and
> write directly to the handheld (which api) .

Either approach is valid. If you go the quickinstall approach, you'll
find that the conduit SDK has no api to generate .pdb files, but there
are lots of libraries in lots of different languages to do that. For
perl, there's Palm::PDB. For C, I think par would do what you want. You
would use the CDK's InstallAide API to actually install the pdb.

If you go the pure conduit approach, the SyncManager API is what you
would use. You would basically delete the old database, create a new
database, open it and append records to it.

-- 
Dave Carrigan
Seattle, WA, USA
[EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680
UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL

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