be careful not to crash your app or reset the code and lose reference to MI without destroying it though, as it remains open in memory, but for some reason Access won't get a handle back on it if it was instantiated from within Access.
there may be a werkaround, but i haven't tried for the best part of a year. -----Original Message----- From: Lars V. Nielsen [mailto:[EMAIL PROTECTED] Sent: Thursday, 21 August 2003 11:54 PM To: Sean Connolly Cc: [EMAIL PROTECTED] Subject: Re: MI-L Check if Mapinfo Professional Open Hi Sean, In VB you do something like this to use an existing instance of MIPro or start a new one if none's running: Set oMIPro = GetObject(,"MapInfo.Application") If oMIPro is nothing Then Set oMIPro = CreateObject("MapInfo.Application") End If I think you can do it similarly in Access. Best regards / Med venlig hilsen Lars V. Nielsen -------------------------------------------------------- Hvenegaard & Meklenborg Rugaardsvej 55, DK-5000 Odense C Denmark http://www.hvm.dk ----- Original Message ----- From: "Sean Connolly" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 21, 2003 3:48 PM Subject: MI-L Check if Mapinfo Professional Open > Hi, > > > I'm trying to write some code in access that checks if Mapinfo is already open before launching a new instance of it. If used the standard windows FindWindow API. Searching by either MapInfo's classname or window caption returns zero results, thing is if I do this with any other application it works fine. Anyone got any ideas/suggestions ? > > Kind Regards > > S�an > > --------------------------------------------------------------------- > List hosting provided by Directions Magazine | www.directionsmag.com | > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > Message number: 8107 > > --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 8108 --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 8117
