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.
=== "Tom Zerucha" <[EMAIL PROTECTED]> wrote in message news:20098@palm-dev-forum
===
I have a nice bulk beaming function ready, but when I SEND data, and
the beam receive is off, the Exchange manager keeps asking me if I
want to turn it on BETWEEN EACH EXCHANGE.
What part of [No] doesn't it understand :).
On the receive end, I can bypass the dialog (I can do an
always/never/ask easily).
How do I do that on the send end?
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/