How to call a method of class D from function of C++ in DLL?
Nicholas Wilson via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Aug 28 03:32:24 PDT 2016
On Sunday, 28 August 2016 at 08:20:52 UTC, MGW wrote:
> On Saturday, 27 August 2016 at 07:13:01 UTC, Nicholas Wilson
> wrote:
>> easiest method would be to mark the D class extern(C++) noting
>> that in C++ a D class reference becomes a pointer to the C++
>> class.
>
> In "the D class extern(C++)" do't work phobos.
? What has this got to do with Phobos?
extern(C++) ImACPlusPlusClassDefinedInD class
{
//...
}
More information about the Digitalmars-d-learn
mailing list