I'm not sure I follow - where are you expecting to see
the database on the other device if it doesn't have
your app on it?
-C
--- [EMAIL PROTECTED] wrote:
> Hey,
>
> i want to beam a palm-database by selecting a
> menuitem. I use the code above and
> all seems to work fine .. it sends the database, the
> other handheld receives it and
> asks wether to save it or to cancel ... but then ..
> there is no database on the other
> device .. what am i doing wrong ?!?
>
> Greets
> SL
>
> PS: The other handhald doesn't run my app ...
>
>
> static Err WriteProc(const void *dataP, UInt32
> *sizeP, void
> *userDataP)
> {
> Err err;
>
> *sizeP = ExgSend((ExgSocketPtr) userDataP, dataP,
> *sizeP,
> &err);
> return err;
> }
>
>
> static void BeamThisFile(Char f[])
> {
> ExgSocketType exgSocket;
> Err err = 0;
> Char *appName = f;
> LocalID id;
> UInt16 cardNumber = 0; // better not to hardcode
> this
>
> id = DmFindDatabase(cardNumber, f);
> if (id) {
> // important to init structure to zeros...
> MemSet(&exgSocket,sizeof(exgSocket),0);
> exgSocket.target = 'Crd+'; //appFileCreator;
> exgSocket.description = f;
> exgSocket.name = f;
>
> err = ExgPut(&exgSocket);
> if (err == 0) {
> if (id)
> err = ExgDBWrite(
> WriteProc,
> &exgSocket,
> appName,
> id,
> cardNumber);
> err = ExgDisconnect(&exgSocket,err);
> }
> }
> }
>
>
> static Boolean mnubeamDB_OnSelect(UInt16 menuID)
> {
> char DBname[26];
> if(DmDatabaseInfo (DB_CARDNO,choosen_id,DBname,
>
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL)==errNone)
> {
> BeamThisFile(DBname);
> }
> }
>
> --
>
> There are 10 kinds of people in this world:
> those who understand binary code and those who do
> not.
>
>
> --
> For information on using the Palm Developer Forums,
> or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/
__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/