Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 2 of 2

Determine if Map has been closed

This is a discussion on Determine if Map has been closed within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi, I was wondering if there is an easy way of determining if a map has been closed by the ...

  1. #1
    BirdIslander is offline Junior Member White Belt
    Join Date
    Dec 2005
    Posts
    1

    Determine if Map has been closed

    Hi, I was wondering if there is an easy way of determining if a map has been closed by the user. A quick overview of whats happening is from our software we call an ocx that we've created that opens a Mappoint map and displays the customer location. By default we leave this map up and the user can look at other customers and map them on the same map. The problem is if the user closes the original map and tries to map another customer we need to open a new map.

    Is there something that I can check to determine if the map is still running and if not create a new map.

    Thanks

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi,

    I'm not sure I full understeand you. But as far as I do you run an external instance of mappoint that you use, and you want to know if this instance has closed by the user, right ?

    Very simple. Start the instance with the win32 API call CreateProcess. Then you can use GetExitCodeProcess API call to check if the instance is still alive. If not then you can start an instance again using the same API call.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Determine if a shape is behind roads?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 03-30-2005, 11:15 AM
  2. Determine if a polyline is closed?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 03-29-2005, 12:37 PM
  3. MapPoint Gets closed on its own
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 11
    Last Post: 01-09-2005, 05:52 AM
  4. If I draw a closed shape around some pushpins, and....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-09-2002, 11:48 PM
  5. Export to Excel works from 'closed shapes'. Is i....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-04-2002, 10:54 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25