Chris, Sorry, more thought about the DLL. The DLL is implemented (by someone else) using MSVC++ (non-managed) as a C API library DLL. What if I wrapped (platform invoke) it using .NET C# and to become a DLL also (managed to some degree). Can I include the .NET C# DLL and will work for Mono+Xdevelop for both Windows and Linux environment?
Regards, Jerry -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of chuchiehliu Sent: Thursday, October 01, 2009 8:06 AM To: [email protected] Cc: [email protected] Subject: Re: [Mono-list] Can cross Windows and Linux platform monoapplication include Windows .NET C# dll ? Chris, My understanding that the DLL will be an unmanaged one. This is a great help for me. Thanks, Jerry -----Original Message----- From: Chris Howie [mailto:[email protected]] Sent: Wednesday, September 30, 2009 10:47 PM To: chuchiehliu Cc: [email protected] Subject: Re: [Mono-list] Can cross Windows and Linux platform mono application include Windows .NET C# dll ? On Wed, Sep 30, 2009 at 6:19 PM, <[email protected]> wrote: > I am looking for cross platform (Windows and RedHat Linux) application > (WindowForm with dll) solution. > > (1) Mono with X-develop is what I have tried first. After I quickly > created a Window.Form application using Windows mono 2.4 and X-develop, I > can run it from RedHat Linux using “mono myapps.exe” command with mono > version 1.9.1 that I got from website for my RedHat Linux. It looks ok. > After reading Mono-list, I am not sure whether my application which will > need to include Windows dll (written in VC++ in dll and wrapped by .NET C# > as dll) will work by using Mono together with X-develop environment? If the DLL is unmanaged (it sounds like it is) then including a Windows build of it will do no good. You will have to compile this as a native Linux library for Mono on Linux to be able to use it. If the library uses non-portable calls (such as win32 functions) then you will have to do the standard C/C++ thing and #if your way to portability, or find a portable function that does the same thing. -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers _______________________________________________ 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
