extern (c) struct ?

Robert M. Münch robert.muench at saphirion.com
Thu Mar 8 15:51:53 UTC 2018


I have a pretty complex struct with C++ typed private members etc. in 
it which I want to use from D.

Obviously I don't want to/can't rebuild the struct definiton in D and I 
don't need access to all the members just some simple C API ones are 
enough.

How can I get access to this struct from D? I mean something like:

alias my_d_struct = extern(c) my_cpp_struct;


-- 
Robert M. Münch
http://www.saphirion.com
smarter | better | faster



More information about the Digitalmars-d-learn mailing list