MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth 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 limitations ...


Go Back   MapPoint Forums > Map Forums > MP2K Magazine Articles

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack (5) Thread Tools Display Modes
  5 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 08-06-2007
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 3,041
Blog Entries: 2
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

Tags
automating, built, enabled, features, gps, mappoint


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 10:33 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Thassos Holidays
Visit an unspoilt and beautiful Greek island with Thassos holidays available through UlookUbook.



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 52 53 54 55 56 57 58 59