Announcement

Collapse
No announcement yet.

MonkeyTalk in .NET???

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

  • 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
    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.

    Comment


    • #3
      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.

      Comment


      • #4
        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

        Comment


        • #5
          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.

          Comment


          • #6
            Xbrady

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

            feelgood

            Comment

            Working...
            X