I'm running a system with dual 17" monitors, and found that I can run 2 copies of 
MapInfo & my MBX, each 
on it's own monitor. I have some real time data coming in, and both screens are at 
different scales. It works 
well, with one small problem left - I want the 2nd (and subsequent) copies to miss out 
doing some of the 
tasks like running the external programs, etc. I can think of 2 different ways to do 
it:

1) Renaming one copy of the MBX to a different name, and detect the name of the MBX 
internally. I could 
then bypass the bits I don't want to run. I see in MapBasic there is a reference to 
mapinfo.MBApplication, 
with a .Name, but this appears to be something that needs to be called from another 
app, probably with 
integrated mapping. Is there any way to detect the name of the MBX that is running?

2) Have both MBXs with the same name, with some way to detect whether a previous 
instance of the app 
is running? If the MBX detected that it was the 2nd instance, then it would bypass 
some bits. I can't see 
how to do this though.

There are hacks like having the first instance create a text file on startup & delete 
it on closing, so the 2nd 
instance can look for the text file, but I was hoping for something a little more 
"elegant" :-)

Dave
--
------------------------------------------------------
|      David Baker       |     [EMAIL PROTECTED]     |
|  Electronics Engineer  |   Kuala Lumpur, Malaysia  |
|----------------------------------------------------|
| http://www.geocities.com/SiliconValley/Vista/8552/ |
------------------------------------------------------
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to