Community of VE/MapPoint Users and Developers
This is a discussion on Automating MapPoint in C++ With Built In GPS Features Enabled within the MP2K Magazine Articles forums, part of the Map Forums category; Automating MapPoint in C++ With Built In GPS Features Enabled "Jonathan Oppelaar shows how he used techniques to overcome ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Automating MapPoint in C++ With Built In GPS Features Enabled "Jonathan Oppelaar shows how he used techniques to overcome limitations in the MapPoint API to make MapPoint a better navigation platform for Project54, a in-car law enforcement system currently in use in over 1,000 vehicles." Full article -- Automating MapPoint in C++ With Built In GPS Features Enabled |
| |||
| Re: Automating MapPoint in C++ With Built In GPS Features Enabled
If any one is also having issues with with the boolean functions that determine if a button was pressed, i found a more reliable method than what Paul was suggesting. Here is my IsTracking function. You have to include Oleacc.lib to your project or dynamically link the dll. I would recommend including it in your project. int MapPt::IsTracking() { logFile<<"IsTracking()\n"; IAccessible * acc=NULL; VARIANT idxIn; VariantInit(&idxIn); V_VT(&idxIn) = VT_I4; V_I4(&idxIn) = CHILDID_SELF; VARIANT idxOut; VariantInit(&idxOut); V_VT(&idxOut) = VT_I4; // Obtain the IAccessible object from the parent window HRESULT hr = AccessibleObjectFromWindow(m_hwBtnStartGPSTracking ,OBJID_CLIENT,IID_IAccessible,(LPVOID*)&acc); if(SUCCEEDED(hr)) { acc->get_accState(idxIn,&idxOut); return V_I4(&idxOut); } else return -1; } If you look in "Oleacc.h" you can see what the different values get_accState returns. There are probably 20 different states the button can be in. Search for SYSTEM_STATE_UNCHECKED in Oleacc.h and it will bring you to all the definitions. |
![]() |
| ||||
| Posted By | For | Type | Date | |
| Programming with MapPoint 2004 using the .NET Framework - MapPoint Articles - MP2K Magazine | This thread | Refback | 08-17-2007 10:37 AM | |
| MapPoint User Community - MP2K Magazine | This thread | Refback | 08-15-2007 09:55 PM | |
| A More Compact Method for Obtaining Lat/Long - MapPoint Articles - MP2K Magazine | This thread | Refback | 08-08-2007 05:50 PM | |
| Microsoft MapPoint 2006 - MP2K Magazine | This thread | Refback | 08-08-2007 12:08 PM | |
| MapPoint Articles - MP2K Magazine | This thread | Refback | 08-07-2007 05:42 PM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Built-in Undo/Redo functionality? | Boelling | MapPoint 2006/2009 Discussion | 0 | 11-15-2004 03:52 AM |
| Automating Mappoint | Anonymous | MapPoint 2006/2009 Discussion | 3 | 07-26-2004 02:29 PM |
| Automating MapPoint with the .NET SDK | Anonymous | MP2K Magazine Articles | 2 | 10-21-2002 05:41 PM |
| I am wondering if anyone has built a COM add-in ap.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 05-13-2002 08:55 AM |
Exeter Flights
Visit Holiday Hypermarket online to find all the essential information about Exeter Airport and Exeter flights. Booking is quick, easy and cheap with Holiday Hypermarket.
Best Travel Agent
Book your Travel with the UK's best Travel Agent - as named at the Guardian Unlimited Travel awards.
Portugal Holiday
For such a small country, you have many options from which to choose. A Portugal Holiday can include fantastic beaches and stunning scenery. Check out our great deals.
Holidays to Cuba
For the best offers on holidays to Cuba, visit The Holiday Place today. Find a deal to suit you and your budget online!
Cheap Egypt Holidays
Pick up a bargain cheap Egypt holiday online when you visit ulookubook.com. Just check out our tips to make sure you book at the right time to get a great holiday for a great price. Finding cheap Egypt holidays can be simple when you know how.
Compare Holidays
Compare holidays online where you can see all the amazing possibilities at Travel.co.uk
Cheap Holidays to Lanzarote
Visit the Canary Islands, even if you're cash strapped! View cheap holidays to Lanzarote at On The Beach!