Passing C++ class to DLL for callbacks from D (Steam)
evilrat
evilrat666 at gmail.com
Fri Jun 8 07:32:54 UTC 2018
On Friday, 8 June 2018 at 06:59:51 UTC, cc wrote:
> On Friday, 8 June 2018 at 02:52:10 UTC, Mike Parker wrote:
>> On Friday, 8 June 2018 at 00:55:35 UTC, cc wrote:
>>
>>>
>>> class CImpl : CCallbackBase {
>>> extern(C++) {
>>
>>> If anyone has any insight to provide it would be greatly
>>> appreciated, thanks!
>>
>> I've not used any of the C++ interfacing features yet, but my
>> understanding is the extern(C++) has to apply to the class
>> declaration itself, not only the member functions:
>>
>> extern(C++)
>> class CImpl : CCallbackBase {
>>
>> Does that make a difference?
>
> Tried wrapping the CImpl class in extern(C++), no luck.. tried
> final keyword on the methods too. Thanks though.
Can you upload reduced example somewhere to play with?
More information about the Digitalmars-d-learn
mailing list