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
Bookmarks