Thread overview |
---|
March 11, 2015 D + .NET | ||||
---|---|---|---|---|
| ||||
If I write a business model in D, how hard is it to hook up a presentation using something like wpf, win32, or even whatever mac does? |
March 11, 2015 Re: D + .NET | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sativa | http://wiki.dlang.org/Libraries_and_Frameworks#GUI_Libraries |
March 11, 2015 Re: D + .NET | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kagamin | On Wednesday, 11 March 2015 at 08:45:15 UTC, Kagamin wrote:
> http://wiki.dlang.org/Libraries_and_Frameworks#GUI_Libraries
Can you point out where it says anything about wpf or .NET? I'm having trouble finding it. I even searched for .net and wpf but still no luck ;/ Maybe you posted the wrong link by accident?
|
March 11, 2015 Re: D + .NET | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sativa | Only native libraries are more or less accessible from D, not .net. For .net you can use pinvoke (if you can build D dll) or IPC. |
March 11, 2015 Re: D + .NET | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kagamin | You can also try to expose COM-accessible .net interface and use it through COM in D. |
March 12, 2015 Re: D + .NET | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sativa | On 2015-03-11 14:30, Sativa wrote: > Can you point out where it says anything about wpf or .NET? I'm having > trouble finding it. I even searched for .net and wpf but still no luck > ;/ Maybe you posted the wrong link by accident? You did mention win32 ;) For OS X Cocoa is the GUI framework. To access that you need to interface with Objective-C. That can either be done using the Objective-C runtime library [1], available from C. This is very tedious and verbose, or wait for this pull request [2] which will add support for linking with Objective-C. [1] https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ObjCRuntimeRef/index.html [2] https://github.com/D-Programming-Language/dmd/pull/4321 -- /Jacob Carlborg |
March 12, 2015 Re: D + .NET | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sativa | On Wednesday, 11 March 2015 at 13:30:27 UTC, Sativa wrote:
> On Wednesday, 11 March 2015 at 08:45:15 UTC, Kagamin wrote:
>> http://wiki.dlang.org/Libraries_and_Frameworks#GUI_Libraries
>
> Can you point out where it says anything about wpf or .NET? I'm having trouble finding it. I even searched for .net and wpf but still no luck ;/ Maybe you posted the wrong link by accident?
.net can also expose and call C API in mixed code assemblies.
|
Copyright © 1999-2021 by the D Language Foundation