It is generally a good idea to have classes dedicated to wrapping unmanaged 
calls, you can test which platform you are at runtime and call the right 
unmanaged function.

On linux and mono you will generally find slot of calls are wrapped inside 
Mono.Posix

That said, it depends what you are pencilling for

Ian

Stifu <[email protected]> wrote:

>Hi,
>
>By using Windows libraries, your application is naturally not portable. The
>best way to make your application portable is simply to stop using these
>libraries, and replace these calls with managed / portable equivalents. That
>said, it's funny MoMA didn't detect any issues.
>
>At some point, there were plans to turn Windows native DLLs into managed
>code
>(http://swik.net/GNOME/Planet+GNOME/Chris+Toshok:+minvoke+-+forcing+portability/c0pf1),
>but this didn't go anywhere.
>
>You could also try running your app on top of Wine + Mono, which might work,
>but is cumbersome.
>
>
>hamitsarmis wrote:
>>
>> Hi,
>> We are using Developer Express on win-form applications and trying to
>> integrate our .Net framework 4 projects to linux. Mono Migration Analyzer
>> reports no issues, but when I run my application, a DLLNotFound exception
>> is thrown for user32.dll and entrynotfoundexception for kernel32.dll
>> (Developer Express is using  DllImports).
>> I've read a few similar issues and it doesn't seem possible to use windows
>> os libraries on linux. As the issues were at 2007, I want to ask again if
>> any solution found out for using windows system libraries.
>>
>> Thanks in advance.
>>
>
>
>--
>View this message in context: 
>http://mono.1490590.n4.nabble.com/Developer-Express-on-Linux-tp3711481p3711566.html
>Sent from the Mono - General mailing list archive at Nabble.com.
>_______________________________________________
>Mono-list maillist  -  [email protected]
>http://lists.ximian.com/mailman/listinfo/mono-list
_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list
  • [Mon... hamitsarmis
    • ... Stifu
      • ... Robert Jordan
    • ... James Darbyshire
      • ... Hamit Abdullah SARMIŞ (Uygulama Geliştirme Altyapı Müdürlüğü)
        • ... Stifu
        • ... Paul Johnson
          • ... Nils Andresen
            • ... Paul Johnson
    • ... Ian Norton

Reply via email to