Dynamically loading a D dynamic library from a c++ program

2014-09-26 Thread Olivier Leduc via Digitalmars-d-learn
Hello, I need to use a C++ SDK to create a plugin an existing closed source c++ application and I would like to know if its possible to use D for that task. Would is be possible to port the SDK header files and call the exposed functions inside the C++ program from a D dynamic library? Is

Re: Dynamically loading a D dynamic library from a c++ program

2014-09-26 Thread Freddy via Digitalmars-d-learn
On Friday, 26 September 2014 at 16:43:30 UTC, Olivier Leduc wrote: Hello, I need to use a C++ SDK to create a plugin an existing closed source c++ application and I would like to know if its possible to use D for that task. Would is be possible to port the SDK header files and call the expo

Re: Dynamically loading a D dynamic library from a c++ program

2014-09-26 Thread John Colvin via Digitalmars-d-learn
On Friday, 26 September 2014 at 16:43:30 UTC, Olivier Leduc wrote: Hello, I need to use a C++ SDK to create a plugin an existing closed source c++ application and I would like to know if its possible to use D for that task. Would is be possible to port the SDK header files and call the expo

Re: Dynamically loading a D dynamic library from a c++ program

2014-09-26 Thread Freddy via Digitalmars-d-learn
On Friday, 26 September 2014 at 16:43:30 UTC, Olivier Leduc wrote: Hello, I need to use a C++ SDK to create a plugin an existing closed source c++ application and I would like to know if its possible to use D for that task. Would is be possible to port the SDK header files and call the expo

Re: Dynamically loading a D dynamic library from a c++ program

2014-09-27 Thread Jacob Carlborg via Digitalmars-d-learn
On 2014-09-26 21:52, John Colvin wrote: Yes, but it depends on the complexity of the headers. C++ templates aren't supported for example. Templates are supported, if they're already instantiated. -- /Jacob Carlborg

Re: Dynamically loading a D dynamic library from a c++ program

2014-09-27 Thread John Colvin via Digitalmars-d-learn
On Saturday, 27 September 2014 at 09:19:57 UTC, Jacob Carlborg wrote: On 2014-09-26 21:52, John Colvin wrote: Yes, but it depends on the complexity of the headers. C++ templates aren't supported for example. Templates are supported, if they're already instantiated. Sorry, yes, I should hav