djinni icon indicating copy to clipboard operation
djinni copied to clipboard

C# support?

Open mitchellmcmillan opened this issue 10 years ago • 9 comments
trafficstars

C# support would allow for easy Windows Phone integration.

mitchellmcmillan avatar Jan 05 '15 13:01 mitchellmcmillan

http://msdn.microsoft.com/en-us/library/ms235281.aspx shows how to wrap a C++ interface with C++/CLI to allow for use from any .NET language. Does not require generating C#.

mitchellmcmillan avatar Jan 05 '15 13:01 mitchellmcmillan

I believe it's better to use pInvoke here. Thus your C++ code will be trully native.

kepkin avatar Mar 11 '15 16:03 kepkin

Based on the comments, it seems that this issue is not viewed as a necessary change. While calling into native libraries may be trivial, going the other way still requires quite a bit of managed C++ glue code that could be generated. It would be really nice to have support for .NET. While Windows Phone may not represent a large marketshare, support for Windows desktops and tablets is definitely valuable.

HoppedUpDev avatar Jun 21 '15 23:06 HoppedUpDev

+1 for @HoppedUpDev

mhstnsc avatar Oct 06 '15 11:10 mhstnsc

+1 for @HoppedUpDev

croban avatar Apr 18 '16 22:04 croban

+1 for @HoppedUpDev

yzhong52 avatar Apr 20 '16 13:04 yzhong52

GitHub now has reaction, I invite you to use it instead of +1

grobx avatar Apr 22 '16 16:04 grobx

is there anyone working on this already ?

lineker avatar Oct 19 '17 13:10 lineker

I doubt it. Windows Phone doesn't seem to be a platform which is worth time investment. Or maybe I missed some other opportunities?

Maybe it would be better to use SWIG here instead of djinni since the former is able to generate C# glue code. If you are using djinni already, you may combine both SWIG and djinni so that djinni generates C++ interfaces that may be parsed by SWIG and generate a glue code. And everything is managed by djinni's IDL.

michal-kowalczyk avatar Oct 19 '17 20:10 michal-kowalczyk