If you want to latch on to a specific running instance of MapInfow.exe then store/test the HWND property of your new object.
Paul Crisp Syntegra Innovation Place Delta Bank Road Newcastle NE11 9DJ Tel 0191 461 4522 Fax 0191 460 1987 -----Original Message----- From: Lars V. Nielsen [mailto:[EMAIL PROTECTED] Sent: 21 August 2003 15:24 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 ******************************************************************** This email may contain information which is privileged or confidential. If you are not the intended recipient of this email, please notify the sender immediately and delete it without reading, copying, storing, forwarding or disclosing its contents to any other person Thank you Check us out at http://www.syntegra.com ******************************************************************** --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 8109
