www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ide - can visual-d support interaction VC++?

reply Kishan Devani <spidren.inc gmail.com> writes:
if yes.
i want know how to use VC++ lib in D Lang...
Nov 18 2015
next sibling parent Rainer Schuetze <r.sagitario gmx.de> writes:
On 18.11.2015 18:07, Kishan Devani wrote:
 if yes.
 i want know how to use VC++ lib in D Lang...
You can find some information on D's capabilities regarding interoperability with C++ here: http://dlang.org/cpp_interface.html Visual D has some support to build C/C++ files within a D project, but you'll have to specify most command line options yourself. As an alternative, you can also link to a C++ library by adding it to the "Project Dependencies" of the D project. This will guarantee correct build order and add the library automatically to the link step.
Nov 20 2015
prev sibling parent Rainer Schuetze <r.sagitario gmx.de> writes:
On 18.11.2015 18:07, Kishan Devani wrote:
 if yes.
 i want know how to use VC++ lib in D Lang...
I remember having answered this (or a similar question) recently, but can't find it, so here it is again: Declarations necessary for calling C/C++ functions from D is described here: http://dlang.org/interfaceToC.html and http://dlang.org/cpp_interface.html In Visuald D, just add the VC++ library project as a "Project Dependency" to the D project. This will add the library to the link command line of the D executable.
Nov 28 2015