Results 1 to 4 of 4

Thread: Map Monkey SDK not working

  1. #1
    Variable Bitrate fromplanetbob's Avatar
    Join Date
    Jan 2005
    Posts
    438

    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. #2
    Raw Wave
    Join Date
    Jun 2004
    Location
    On the beach
    Posts
    2,223
    Have you changed the settings.ini file to allow remote connections??

  3. #3
    Variable Bitrate fromplanetbob's Avatar
    Join Date
    Jan 2005
    Posts
    438
    Quote 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?

  4. #4
    Variable Bitrate fromplanetbob's Avatar
    Join Date
    Jan 2005
    Posts
    438
    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

Similar Threads

  1. Replies: 36
    Last Post: 12-13-2005, 08:38 AM
  2. map monkey doesent move
    By sportive in forum Map Monkey
    Replies: 1
    Last Post: 05-09-2005, 01:19 PM
  3. Map Monkey + TMC
    By Mcnovy in forum Map Monkey
    Replies: 3
    Last Post: 03-24-2005, 04:51 PM
  4. Replies: 23
    Last Post: 03-21-2005, 04:45 AM
  5. Replies: 4
    Last Post: 02-26-2004, 10:52 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •