Passing C++ class to DLL for callbacks from D (Steam)

Mike Parker aldacron at gmail.com
Fri Jun 8 02:52:10 UTC 2018


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?


More information about the Digitalmars-d-learn mailing list