Community of MapPoint and Virtual Earth 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 limitations ...
| |||||||
| Today's Posts | Twitter Feed | 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. |
![]() |
| Tags |
| automating, built, enabled, features, gps, mappoint |
| ||||
| 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 |
Thassos Holidays
Visit an unspoilt and beautiful Greek island with Thassos holidays available through UlookUbook.