MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Determine if Map has been closed

This is a discussion on Determine if Map has been closed within the MapPoint 2006/2009 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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-07-2005
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 12-07-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,047
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -5. The time now is 08:58 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5
MP2K Magazine
Visitor Map

Cheap Flights from Manchester
Book cheap flights from Manchester Airport from a range of Tour Operators and airlines. Holiday Hypermarket will help you jet off. Visit online to find useful airport information too.

Flights to Italy
Find and book flights to Italy. Travel Counsellors can help with travel to Italy including flights and accommodation.

Cuba Holidays
After years of neglect by the western world, Cuba is coming back onto the holiday scene. Cuba Holidays are a unique and enjoyable experience. Book at dealchecker.co.uk.

Jamaica Holidays
Jamaica holidays give you the chance to enjoy the vibrant cultural heritage and wonderful laid back atmosphere of the Caribbean. Book here!

Egypt
In Egypt you find an ancient city buzzing with life. There is an abundance of historical sites to see, not just the pyramids. The Opera House is certainly worth a visit and you can enjoy some open-air theatre too.

All inclusive holidays
To plan all inclusive holidays, use Travel.co.uk to explore all the possibilities.

Cheap Holidays in Goa
Visit the unique blend of east and west in India! Get information on cheap holidays in Goa, only at On The Beach.


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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51