"Danny Epstein" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> "Kelly J Perkins" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Is there anyway to detect a beam event to another application from my
> > application?
>
> The incoming beam does generate events, but they're handled in EvtGetEvent
> and not returned, so you can't intercept them. This is done for
efficiency.
>
> Application A could register for application B's data, marking itself as
the
> default. (There's no API for the second part, but it is possible.) But
then
> application A would receive the data and it would have to forward the data
> to application B. This is messy at best.
>
> You could override the ExgNotifyReceive trap via a hack or whatever. This
> function hasn't been documented though. Also, you wouldn't find out until
> the object is being delivered (after it's received).
>
> There is no supported way to do what you want. Can you explain why you
want
> to do this? Maybe there's another approach to the problem.
> --
> Danny Epstein
> OS Engineer, Palm Inc.
>
>
>

Thanks for getting back to me...

We have created an application (A) that shares a database with another
application (B). When the receiver has Application A opened, and the sender
tries to beam data from Application B, the receiving end launches
Application B and tries to open the same database which is already opened by
Application A and causes a dmErrAlreadyExists.

The sticky part is I can't get to Application B's code to tell it to look
for an instance of Application A and use that database handle. For the
reverse case, where App A is sending data to a receiver with App B opened, I
call SysAppLaunch and pass the incoming data beam to Application B.

Hope that isn't too confusing...

If you have any other suggestions, I would greatly appreciate them,
otherwise, I think we are going to handle it as a "training issue" and try
to get users to be in Application B on both receiving and sending end when
they want to send data. Is that considered bad "Palm" behavior?

Thanks!





-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to