[Mono-list] Mono and Managed C++ ? Worth the effort ?

Alan alan.mcgovern at gmail.com
Tue Feb 7 15:44:13 UTC 2012


If your managed C++ can be compiled as pure .NET, then it is supported as
there is no native code.

However, if you are using native code you would have to firstly recompile
your C++/CLI on every platform you want to run on (as the native code is
platform specific) and then find a way to generate a C++/CLI assembly which
can be loaded by linux/macos/whatever (again, not supported) and also add
support to mono for loading these assemblies (so far only available on
windows). So in short, it's a lot of work and not possible currently.

Alan


On 7 February 2012 14:02, Slide <slide.o.mix at gmail.com> wrote:

>
>
> On Tue, Feb 7, 2012 at 4:18 AM, Andrew Tierney <andrew at castlesoft.com.au>wrote:
>
>> Hi All,****
>>
>> ** **
>>
>> I have a project I am working on that I would like to port to Linux that
>> uses the PcapDotNet library:****
>>
>> ** **
>>
>> https://PcapDotNet.svn.codeplex.com/svn****
>>
>> ** **
>>
>> It’s an amazing library, fast and full featured. ****
>>
>> ** **
>>
>> I chose this library over SharpPCap based on my reading that managed c++
>> would be quicker than pinvoke for fast packet capture.****
>>
>> (If this is the wrong assumption, please let me know).****
>>
>> ** **
>>
>> Anyway… I would like to run this code on Linux if possible ?****
>>
>> ** **
>>
>> There is a PcapDotNet.Core directory which contains all the C++/Wrapper
>> code, the rest of the code is C#.****
>>
>> ** **
>>
>> My question is… Is it possible/feasible ? Worth my time/effort to port
>> this ?   (ie..   #ifdef Windows   winpcap    elseif #linux    libpcap  etc
>> etc)****
>>
>> ** **
>>
>> Any info would be greatly appreciated.****
>>
>> ** **
>>
>> Thanks****
>>
>> Andrew****
>>
>> ** **
>>
>> ** **
>>
>> ** **
>>
>> ** **
>>
>> _______________________________________________
>> Mono-list maillist  -  Mono-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-list
>>
>>
>
> Unless this has changed recently, Mono does not support Managed C++.
>
> slide
> --
> Website: http://earl-of-code.com
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20120207/c3155270/attachment-0001.html>


More information about the Mono-list mailing list