Results 1 to 6 of 6

Thread: MonkeyTalk in .NET???

  1. #1
    Newbie
    Join Date
    May 2005
    Posts
    6

    MonkeyTalk in .NET???

    Hi,


    Working with C# (.Net environment):
    using MonkeyTalk;(and set the monkey .dll as reference)

    MonkeyTalk.MonkeyMessenger MyMonkey = new MonkeyTalk.MonkeyMessenger();

    if(MapMon.IsMapMonkeyRunning)
    textBox1.Text="Program is running"; this is working so the dll is supported


    MyMonkey.Connected=true; gives error:"Property Connected unsupported by language."

    I saw a piece of code in another post using vb.net that was working( i think).
    What's going wrong? Anyone using net languages could point me?
    Thanks.
    feel good

  2. #2
    Newbie
    Join Date
    May 2005
    Posts
    6
    Well answer found by myself....may be useful for others...

    C# wrapper interop hides some properties that need a workaround to work, vb.net doesn't and works better.

    So property Connected that's working good in vb.net in c# is:
    bool Conn=true;
    MyMonkey.set_Connected(ref Conn);

    feel good.

  3. #3
    Low Bitrate jadz's Avatar
    Join Date
    Apr 2004
    Posts
    58
    I tried to use this example to get MM embedded in a C# app without any luck.


    https://secure.codeproject.com/cs/mi...AppControl.asp

    Any thoughts? The code works for iexplorer and some other apps, but not MapMonkey.

  4. #4
    Newbie
    Join Date
    May 2005
    Posts
    6
    Don't know about that Codeproject example( i read only the title of the link), but embedding MM in a C# project is possible and works fine.Just use the method .EmbedMapMonkey().

    MM must be running before the call to embed or use a method to run it before.


    bye
    feel good

  5. #5
    Super Moderator xBrady's Avatar
    Join Date
    Apr 2004
    Location
    USA
    Posts
    3,687
    Let me know if you can get the RetrieveLastNMEA() method to work in C# (maybe anything, I think I'm the only one that has tried it). As soon as I finally got it to return anything all I got was: "Unknown NMEA String".
    AMD XP 2600+/512MB RAM/120GB hard drive
    Opus 150W/DVD/GPS/7" Lilliput TS/802.11g/Bluetooth
    Installed.


    -GPSSecure- - GPS Tracking
    -AltTabber2.2.2- - Handy touchscreen utility.

  6. #6
    Newbie
    Join Date
    May 2005
    Posts
    6
    Xbrady

    you are right, it seems not working, in Vb.net also ,always "Unknown NMEA String".

    feelgood

Similar Threads

  1. sendMessage from a .Net App
    By ruairi in forum Road Runner
    Replies: 15
    Last Post: 09-30-2007, 12:32 PM
  2. Possible to change the .NET frameworks locations?
    By t00h0t in forum WinNT Based
    Replies: 0
    Last Post: 02-23-2005, 09:59 AM
  3. nLite without .NET possible now !
    By nuhi in forum WinNT Based
    Replies: 4
    Last Post: 01-18-2005, 02:58 PM
  4. FS: Visual Studio .NET (new!)
    By W6-Ryan in forum Classified Archive
    Replies: 0
    Last Post: 10-24-2002, 09:37 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
  •