Announcement

Collapse
No announcement yet.

Map Monkey SDK not working

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Map Monkey SDK not working

    I was playing around with embedding Map Monkey into an application. I couldn't get it to find map monkey. The problem is when I run the project1.exe file in the demo sdk directories, it can't find map monkey running either (and yes, I have map monkey running when I try).

    Any ideas guys?

  • #2
    Have you changed the settings.ini file to allow remote connections??

    Comment


    • #3
      Originally posted by UK_MP3Car
      Have you changed the settings.ini file to allow remote connections??
      Thanks! That was it. The demo works, now onto getting it in my .NET app.

      Anyone here embedded Map Monkey into a .NET application?

      Comment


      • #4
        Okay, got it working.

        For those wanting to embed map monkey into a .NET here is the vb.net (visual Basic.net) code (add the MonkeyTalk.dll to your references as a COM component of course).

        Oh, I put a Panel on my form called PanelGPS, the application embeds to that panel. I'll have more stuff for this in a few weeks as this grows, I'll most likely write a vb.net class around the MonkeyTalk.dll.

        My plan? To build a Satellite Radio/MP3/GPS application for use in my car.

        Code:
        Dim MapMonkey As New MonkeyTalk.MonkeyMessenger
            Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
                If Not MapMonkey.IsMapMonkeyRunning() Then
                    Shell("C:\DestinatorApps\Map Monkey\MapMonkey.exe", AppWinStyle.Hide, False)
                    Dim I As Integer
                    For I = 0 To 100
                        Threading.Thread.Sleep(10)
                        Application.DoEvents()
                    Next I
                End If
                If MapMonkey.IsMapMonkeyRunning Then
                    MapMonkey.Connected = True
                    Dim M As Integer = Me.PanelGPS.Handle.ToInt32
                    Dim S = MapMonkey.EmbedMapMonkey(M, False)
                    MessageBox.Show(S)
                Else
                    MessageBox.Show("Map Monkey is not running.")
                End If
            End Sub

        Comment

        Working...
        X