Hi Sean, I've had my own battles with the Findwindow API today. You can substitute a vbNullString for the windows ClassName and it works.
e.g: Sub FindMapinfo() Dim AppRunning As Integer Dim strCaption As String strCaption = "MapInfo Professional" AppRunning = FindWindow(vbNullString, strCaption) MsgBox "Window found!: " & AppRunning End Sub Regards, Dominic -----Original Message----- From: Sean Connolly [mailto:[EMAIL PROTECTED] Sent: 21 August 2003 14:48 To: [EMAIL PROTECTED] Subject: MI-L Check if Mapinfo Professional Open Importance: High 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: 8110
