digitalmars.D.learn - How to I call D code from C# Project?
- GoD (26/26) Jun 18 2014 Hi.
- Jesse Phillips (8/11) Jun 18 2014 My plan was to use COM. I've not actually implemented such
- GoD (2/2) Jun 18 2014 @Jesse
- Jesse Phillips (9/11) Jun 18 2014 You'll have to access it through a COM interface on the C# side.
- Binarydepth (2/14) Jun 25 2014 That sounds legit.
- Andre Artus (4/30) Jun 19 2014 You could write a DLL un D, and call that from C# with PInvoke.
- Kagamin (2/4) Jun 19 2014 DWT and TkD didn't work for you?
Hi. How can I do this? D, very fast programming language. But I can not WinForm also i want to use D code for my project. for example; I'm see PC information with D lang. Example Code(Suppose that D): PCInformation //D LANG CODE { showHDDSerialNumber(); showCPUsage(); showMACAdress(); showFooBar(); } using namespace DCODE; // DCODE Library written it D Lang WinFormApp { PCInformation pin = new PCInformation(); // D code import Label1.Text = pin.ShowHDDSerialNumber(); // D code import } How can I do this? Sorry for my bad english :( Thank you :)
Jun 18 2014
On Wednesday, 18 June 2014 at 20:55:09 UTC, GoD wrote:Hi. How can I do this?My plan was to use COM. I've not actually implemented such communication. Juno provides some items: https://github.com/JesseKPhillips/Juno-Windows-Class-Library/ But I haven't done a update for latest compiler and as I said, haven't created a real project with it. (Got annoyed with MS security in an example I was working on)
Jun 18 2014
On Wednesday, 18 June 2014 at 23:41:43 UTC, GoD wrote:Jessehttp://msdn.microsoft.com/en-us/library/aa645736%28v=vs.71%29.aspx If you haven't done work in COM before its a lot of new things to learn. a C interface. Sorry I can't walk you through working examples. As mentioned, I haven't gotten that far myself.
Jun 18 2014
On Thursday, 19 June 2014 at 04:07:30 UTC, Jesse Phillips wrote:On Wednesday, 18 June 2014 at 23:41:43 UTC, GoD wrote:That sounds legit.Jessehttp://msdn.microsoft.com/en-us/library/aa645736%28v=vs.71%29.aspx If you haven't done work in COM before its a lot of new things to learn. expose a C interface. Sorry I can't walk you through working examples. As mentioned, I haven't gotten that far myself.
Jun 25 2014
On Wednesday, 18 June 2014 at 20:55:09 UTC, GoD wrote:Hi. How can I do this? D, very fast programming language. But I can not WinForm But, also i want to use D code for my project. for example; I'm see PC information with D lang. Example Code(Suppose that D): PCInformation //D LANG CODE { showHDDSerialNumber(); showCPUsage(); showMACAdress(); showFooBar(); } using namespace DCODE; // DCODE Library written it D Lang WinFormApp { PCInformation pin = new PCInformation(); // D code import Label1.Text = pin.ShowHDDSerialNumber(); // D code import } How can I do this? Sorry for my bad english :( Thank you :)http://wiki.dlang.org/Win32_DLLs_in_D http://msdn.microsoft.com/en-us/library/aa288468(v=vs.71).aspx
Jun 19 2014
On Wednesday, 18 June 2014 at 20:55:09 UTC, GoD wrote:D, very fast programming language. But I can not WinFormDWT and TkD didn't work for you?
Jun 19 2014
I know it but I can not do without the drag-and-drop. (Design etc..)
Jun 19 2014
On Thursday, 19 June 2014 at 13:59:25 UTC, Kagamin wrote:On Wednesday, 18 June 2014 at 20:55:09 UTC, GoD wrote:Can you give us some Design tools on windows for DWT? Thank you.D, very fast programming language. But I can not WinFormDWT and TkD didn't work for you?
Jun 25 2014