www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - D + .NET

reply "Sativa" <Sativa Indica.org> writes:
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
parent reply "Kagamin" <spam here.lot> writes:
http://wiki.dlang.org/Libraries_and_Frameworks#GUI_Libraries
Mar 11 2015
parent reply "Sativa" <Sativa Indica.org> writes:
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?
Mar 11 2015
next sibling parent reply "Kagamin" <spam here.lot> writes:
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
parent "Kagamin" <spam here.lot> writes:
You can also try to expose COM-accessible .net interface and use 
it through COM in D.
Mar 11 2015
prev sibling next sibling parent Jacob Carlborg <doob me.com> writes:
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
prev sibling parent "Kagamin" <spam here.lot> writes:
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.
Mar 12 2015