digitalmars.D.learn - D + .NET
- Sativa (3/3) Mar 11 2015 If I write a business model in D, how hard is it to hook up a
- Kagamin (1/1) Mar 11 2015 http://wiki.dlang.org/Libraries_and_Frameworks#GUI_Libraries
- Sativa (4/5) Mar 11 2015 Can you point out where it says anything about wpf or .NET? I'm
- Kagamin (3/3) Mar 11 2015 Only native libraries are more or less accessible from D, not
- Kagamin (2/2) Mar 11 2015 You can also try to expose COM-accessible .net interface and use
- Jacob Carlborg (12/15) Mar 12 2015 You did mention win32 ;)
- Kagamin (2/7) Mar 12 2015 .net can also expose and call C API in mixed code assemblies.
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?
Mar 11 2015
http://wiki.dlang.org/Libraries_and_Frameworks#GUI_Libraries
Mar 11 2015
On Wednesday, 11 March 2015 at 08:45:15 UTC, Kagamin wrote:http://wiki.dlang.org/Libraries_and_Frameworks#GUI_LibrariesCan 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?
Mar 11 2015
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.
Mar 11 2015
You can also try to expose COM-accessible .net interface and use it through COM in D.
Mar 11 2015
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
Mar 12 2015
On Wednesday, 11 March 2015 at 13:30:27 UTC, Sativa wrote:On Wednesday, 11 March 2015 at 08:45:15 UTC, Kagamin wrote:.net can also expose and call C API in mixed code assemblies.http://wiki.dlang.org/Libraries_and_Frameworks#GUI_LibrariesCan 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?
Mar 12 2015