MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Automating MapPoint in C++ With Built In GPS Features Enabled

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 ...


Go Back   MapPoint Forums > Map Forums > MP2K Magazine Articles

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  5 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 08-06-2007
Eric Frost's Avatar
Administrator
Black Belt
 
Join Date: Jul 1992
Posts: 2,210
Blog Entries: 1
Automating MapPoint in C++ With Built In GPS Features Enabled

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
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 08-08-2007
Junior Member
White Belt
 
Join Date: Jul 2007
Posts: 8
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.
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


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/automating-mappoint-c-built-gps-features-enabled-6137.html

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

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
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


All times are GMT -5. The time now is 01:11 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

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!


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