On Wednesday, 21 March 2018 at 18:42:43 UTC, nkm1 wrote:
On Wednesday, 21 March 2018 at 16:22:45 UTC, Martin Tschierschke wrote:
[...]

The easiest thing to do is to write a wrapper in C. The wrapper will include all necessary headers and provide some easy to use functions that you can call from D. Of course, you'll need to use a C compiler to compile it. Anyway, this header looks very straightforwar, no particular tricks with the preprocessor. It should be something like this (untested, obviously):

[...]
Thank you!
Especially this was a missing link:
struct MapiStruct;
alias Mapi = MapiStruct*;

Reply via email to