View Single Post

  #2 (permalink)  
Old 09-07-2006
Paul Larson Paul Larson is offline
Senior Member
Green Belt
 
Join Date: Sep 2005
Location: Marshall, Michigan
Posts: 122
Exclamation Author's Note: Using the mpGPS API with MapPoint 2006 EUROPE

I've finally obtained a copy of MapPoint 2006 EUROPE, and noted a slight change needed in the code to handle a difference in this version.

For some reason, Microsoft embedded a CrLf combo in the text of the button to toggle voice prompting. So, in the module mpGPS.vb, in the New() procedure, add the following code:

'EDIT: In mappoint2006 EUROPE, there is a CrLf in the button caption for voice control:
If hwToggleVoice = 0 Then hwToggleVoice = FindWindowEx(hwChild(3), 0, vbNullString, "Turn Voice" & ControlChars.CrLf & "Off (F7)")

...immediately before the line which reads:
hwRepeatLastInstruction = FindWindowEx(hwChild(3), 0, vbNullString, "Repeat Instruction (Spacebar)")

Also, you will of course need to update the sample project (mpGPSDemo) reference for Interop.MapPoint to the correct version when using it with the European desktop product.

Best Regards,
Paul Larson
Reply With Quote