On Tue, Aug 08, 2000 at 11:02:29AM -0700, Danny Epstein wrote:
> This is one of those cases where the OS is trying to be helpful, but ends up
> just being annoying. :)
>
> I just took a peek at the source and it's the IR library that's asking the
> user if he wants to enable beam receive when you disconnect after an ExgPut.
> The condition for putting up the dialog is:
>
> scanningDisabled AND // beam receive is off
> socketRef == 0 AND // disconnecting after an ExgPut (rather than
> an ExgAccept)
> ! localMode AND // not in loop-back mode (shortcut-dot-t)
> ! testMode // not in test (aka serial) mode
> (shortcut-dot-s)
>
> All of these conditions except the first one are tested earlier in the
> function, so you don't want to mess with them. You could change the first
> one prior to calling ExgDisconnect (and then change it back after). To do
> this, you'll want to use the ExgLibControl entry point in the IR library
> (defined in ExgLib.h), passing it the irGetScanningMode and
> irSetScanningMode opcodes (defined in IrLib.h). This is definitely a hack
> though; you're actually enabling beam receive temporarily just to avoid the
> prompt. Still, I can't think of a better solution.
> --
> Danny Epstein
> OS Engineer, Palm Inc.
Thanks!. I was hoping for something better, but this opens up
interesting possibilities about exchanging information in a two-way
fashion (enabling beam-receive for responses).
But for now, time to integrate the above...
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/