Total Pageviews

Disclaimer

This is a personal web page. The views expressed on this blog are mine and do not necessarily reflect the views of my current employer.

I am currently employed by Morgan Stanley.

May 03, 2010

DockPanel Suite Tip #5: We Could Go Mono

DockPanel Suite was designed for Windows. Its original author and later contributors do not yet port it to Mono. However, so many people including me would like to have a Mono friendly DPS, then how can we achieve that?

A full port to Mono requires us to get rid of all Win32 PInvoke, but unless someone who masters Windows/Linux/DPS comes I bet it is not likely that we see a full port.

I chose the easy way to sacrifice certain features. For example, if we disable end user drag and drop, all such PInvoke parts can be safely commented out. Is that all I need? Yes, my applications at this moment do not need any drag and drop, so why not use this lite version?

I now happily see the applications run fine on Mono (well, one infinite loop issue needs to be worked around though). So do you plan to use such a lite version?

The lite version of source code is available here, http://code.google.com/p/sharpsnmplib/source/browse/#hg%2FWinFormsUI. You can check out the entire WinFormsUI folder and analyze it to see what changes I've made.

5 comments:

  1. create work, i'm going to test it tomorrow on osx. i'll keep you informed
    ReplyDelete
  2. Has anyone else used this and does it work?
    ReplyDelete
  3. It is used in #SNMP project, and tested on Windows, Ubuntu 10.10 and openSUSE 11.*.
    ReplyDelete
  4. Please can you provide the .dll file? I am trying to compile the code but am getting errors.
    ReplyDelete
  5. You can find the binary in bin.zip

    http://sharpsnmplib.codeplex.com/releases/view/52820
    ReplyDelete